22 lines
573 B
C#
22 lines
573 B
C#
using System.Collections.Generic;
|
|
|
|
namespace StellaOps.Scanner.WebService.Contracts;
|
|
|
|
public sealed record ScanSubmitRequest
|
|
{
|
|
public required ScanImageDescriptor Image { get; init; } = new();
|
|
|
|
public bool Force { get; init; }
|
|
|
|
public string? ClientRequestId { get; init; }
|
|
|
|
public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
|
}
|
|
|
|
public sealed record ScanImageDescriptor
|
|
{
|
|
public string? Reference { get; init; }
|
|
|
|
public string? Digest { get; init; }
|
|
}
|