33 lines
813 B
C#
33 lines
813 B
C#
namespace StellaOps.Scanner.WebService.Domain;
|
|
|
|
public sealed record ScanSnapshot(
|
|
ScanId ScanId,
|
|
ScanTarget Target,
|
|
ScanStatus Status,
|
|
DateTimeOffset CreatedAt,
|
|
DateTimeOffset UpdatedAt,
|
|
string? FailureReason,
|
|
EntropySnapshot? Entropy,
|
|
ReplayArtifacts? Replay,
|
|
string TenantId = "default");
|
|
|
|
public sealed record ReplayArtifacts(
|
|
string ManifestHash,
|
|
IReadOnlyList<ReplayBundleSummary> Bundles);
|
|
|
|
public sealed record ReplayBundleSummary(
|
|
string Type,
|
|
string Digest,
|
|
string CasUri,
|
|
long SizeBytes);
|
|
|
|
public sealed record EntropySnapshot(
|
|
double ImageOpaqueRatio,
|
|
IReadOnlyList<EntropyLayerSnapshot> Layers);
|
|
|
|
public sealed record EntropyLayerSnapshot(
|
|
string LayerDigest,
|
|
double OpaqueRatio,
|
|
long OpaqueBytes,
|
|
long TotalBytes);
|