audit, advisories and doctors/setup work
This commit is contained in:
@@ -44,6 +44,9 @@ public sealed record OciManifest
|
||||
[JsonPropertyName("artifactType")]
|
||||
public string? ArtifactType { get; init; }
|
||||
|
||||
[JsonPropertyName("manifests")]
|
||||
public List<OciIndexDescriptor>? Manifests { get; init; }
|
||||
|
||||
[JsonPropertyName("config")]
|
||||
public OciDescriptor? Config { get; init; }
|
||||
|
||||
@@ -54,6 +57,36 @@ public sealed record OciManifest
|
||||
public Dictionary<string, string>? Annotations { get; init; }
|
||||
}
|
||||
|
||||
public sealed record OciIndexDescriptor
|
||||
{
|
||||
[JsonPropertyName("mediaType")]
|
||||
public string? MediaType { get; init; }
|
||||
|
||||
[JsonPropertyName("digest")]
|
||||
public string Digest { get; init; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("size")]
|
||||
public long Size { get; init; }
|
||||
|
||||
[JsonPropertyName("platform")]
|
||||
public OciPlatform? Platform { get; init; }
|
||||
|
||||
[JsonPropertyName("annotations")]
|
||||
public Dictionary<string, string>? Annotations { get; init; }
|
||||
}
|
||||
|
||||
public sealed record OciPlatform
|
||||
{
|
||||
[JsonPropertyName("os")]
|
||||
public string? Os { get; init; }
|
||||
|
||||
[JsonPropertyName("architecture")]
|
||||
public string? Architecture { get; init; }
|
||||
|
||||
[JsonPropertyName("variant")]
|
||||
public string? Variant { get; init; }
|
||||
}
|
||||
|
||||
public sealed record OciDescriptor
|
||||
{
|
||||
[JsonPropertyName("mediaType")]
|
||||
|
||||
@@ -13,7 +13,8 @@ internal static class OciImageReferenceParser
|
||||
|
||||
reference = reference.Trim();
|
||||
if (reference.StartsWith("http://", StringComparison.OrdinalIgnoreCase) ||
|
||||
reference.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
|
||||
reference.StartsWith("https://", StringComparison.OrdinalIgnoreCase) ||
|
||||
reference.StartsWith("docker://", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return ParseUri(reference);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user