using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace StellaOps.Scanner.Sbomer.BuildXPlugin.Manifest;

/// <summary>
/// Provides distribution information for the container image form-factor.
/// </summary>
public sealed record BuildxPluginImage
{
    [JsonPropertyName("name")]
    public string Name { get; init; } = string.Empty;

    [JsonPropertyName("digest")]
    public string? Digest { get; init; }

    [JsonPropertyName("platforms")]
    public IReadOnlyList<string> Platforms { get; init; } = Array.Empty<string>();
}
