using System.Text.Json.Serialization;

namespace StellaOps.Scanner.Sbomer.BuildXPlugin.Manifest;

/// <summary>
/// Describes default Content Addressable Storage configuration for the plug-in.
/// </summary>
public sealed record BuildxPluginCas
{
    [JsonPropertyName("protocol")]
    public string Protocol { get; init; } = "filesystem";

    [JsonPropertyName("defaultRoot")]
    public string DefaultRoot { get; init; } = "cas";

    [JsonPropertyName("compression")]
    public string Compression { get; init; } = "zstd";
}
