Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/docs/mp-packages/cli/skopeo.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Global options are rendered before the selected subcommand.
| `--policy` | `Policy` | All editions | Path to a trust policy file |
| `--registries.d` | `RegistriesD` | All editions | use registry configuration files in DIR (e.g. for container signature storage) |
| `--tmpdir` | `Tmpdir` | All editions | directory used to store temporary files |
| `--user-agent-prefix` | `UserAgentPrefix` | All editions | prefix to add to the user agent string |

## Commands

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"formatVersion": 1,
"toolName": "skopeo",
"toolVersion": "1.13.3",
"toolVersion": "1.21.0-dev",
"commandCount": 11,
"commandTreeSha256": "71df545926b8f3395c60d1ed9e037569395c16b401bff0417eacdfb16d3d7908",
"commands": [
Expand Down
4 changes: 2 additions & 2 deletions src/ModularPipelines.Skopeo/Generated/Skopeo.Generation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"formatVersion": 2,
"toolName": "skopeo",
"toolVersion": "1.13.3",
"toolVersion": "1.21.0-dev",
"commandTreeSha256": "71df545926b8f3395c60d1ed9e037569395c16b401bff0417eacdfb16d3d7908",
"generatorSourceSha256": "5af20c5a8878ce0264039475faa6f665af10eac66bc1fa0432c8f4325f23b722"
"generatorSourceSha256": "92f4770b3160b564cd039bdfbb76011f3404084a70eae3fedd9855ba8306c692"
}
32 changes: 28 additions & 4 deletions src/ModularPipelines.Skopeo/Options/SkopeoCopyOptions.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
public bool? All { get; set; }

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--authfile", Format = OptionFormat.EqualsSeparated)]
public string? Authfile { get; set; }
Expand All @@ -70,7 +70,7 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
public IEnumerable<string>? DecryptionKey { get; set; }

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--dest-authfile", Format = OptionFormat.EqualsSeparated)]
public string? DestAuthfile { get; set; }
Expand Down Expand Up @@ -118,6 +118,12 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
[CliFlag("--dest-decompress")]
public bool? DestDecompress { get; set; }

/// <summary>
/// Force exclusive use of the compression algorithm set in --dest-compress-format
/// </summary>
[CliFlag("--dest-force-compress-format")]
public bool? DestForceCompressFormat { get; set; }

/// <summary>
/// Access the registry anonymously
/// </summary>
Expand Down Expand Up @@ -192,6 +198,12 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
[CliOption("--format", ShortForm = "-f", Format = OptionFormat.EqualsSeparated)]
public SkopeoCopyFormat? Format { get; set; }

/// <summary>
/// Maximum number of image layers to be copied (pulled/pushed) simultaneously. Not setting this field will fall back to containers/image defaults.
/// </summary>
[CliOption("--image-parallel-copies", Format = OptionFormat.EqualsSeparated)]
public ulong? ImageParallelCopies { get; set; }

/// <summary>
/// How to handle multi-architecture images (system, all, or index-only)
/// </summary>
Expand All @@ -211,11 +223,17 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
public bool? Quiet { get; set; }

/// <summary>
/// Do not copy signatures from SOURCE-IMAGE
/// Do not copy signatures from source
/// </summary>
[CliFlag("--remove-signatures")]
public bool? RemoveSignatures { get; set; }

/// <summary>
/// Fixed delay between retries. If not set, retry uses an exponential backoff delay.
/// </summary>
[CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)]
public string? RetryDelay { get; set; }

/// <summary>
/// the number of times to possibly retry
/// </summary>
Expand All @@ -241,6 +259,12 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
[CliOption("--sign-by-sigstore-private-key", Format = OptionFormat.EqualsSeparated)]
public string? SignBySigstorePrivateKey { get; set; }

/// <summary>
/// Sign the image using a Sequoia-PGP key with the specified FINGERPRINT
/// </summary>
[CliOption("--sign-by-sq-fingerprint", Format = OptionFormat.EqualsSeparated)]
public string? SignBySqFingerprint { get; set; }

/// <summary>
/// Identity of signed image, must be a fully specified docker reference. Defaults to the target docker reference.
/// </summary>
Expand All @@ -254,7 +278,7 @@ public void Deconstruct(out string SourceImage, out string DestinationImage)
public string? SignPassphraseFile { get; set; }

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--src-authfile", Format = OptionFormat.EqualsSeparated)]
public string? SrcAuthfile { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void Deconstruct(out string ImageName)
}

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--authfile", Format = OptionFormat.EqualsSeparated)]
public string? Authfile { get; set; }
Expand Down Expand Up @@ -84,6 +84,12 @@ public void Deconstruct(out string ImageName)
[CliOption("--registry-token", Format = OptionFormat.EqualsSeparated)]
public string? RegistryToken { get; set; }

/// <summary>
/// Fixed delay between retries. If not set, retry uses an exponential backoff delay.
/// </summary>
[CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)]
public string? RetryDelay { get; set; }

/// <summary>
/// the number of times to possibly retry
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void Deconstruct(out string ImageName)
}

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--authfile", Format = OptionFormat.EqualsSeparated)]
public string? Authfile { get; set; }
Expand Down Expand Up @@ -108,6 +108,12 @@ public void Deconstruct(out string ImageName)
[CliOption("--registry-token", Format = OptionFormat.EqualsSeparated)]
public string? RegistryToken { get; set; }

/// <summary>
/// Fixed delay between retries. If not set, retry uses an exponential backoff delay.
/// </summary>
[CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)]
public string? RetryDelay { get; set; }

/// <summary>
/// the number of times to possibly retry
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void Deconstruct(out string SourceImage)
}

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--authfile", Format = OptionFormat.EqualsSeparated)]
public string? Authfile { get; set; }
Expand Down Expand Up @@ -78,6 +78,12 @@ public void Deconstruct(out string SourceImage)
[CliOption("--registry-token", Format = OptionFormat.EqualsSeparated)]
public string? RegistryToken { get; set; }

/// <summary>
/// Fixed delay between retries. If not set, retry uses an exponential backoff delay.
/// </summary>
[CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)]
public string? RetryDelay { get; set; }

/// <summary>
/// the number of times to possibly retry
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public abstract record SkopeoOptions : CommandLineToolOptions
[CliOption("--tmpdir", Format = OptionFormat.EqualsSeparated)]
public virtual string? Tmpdir { get; set; }

/// <summary>
/// prefix to add to the user agent string
/// </summary>
[CliOption("--user-agent-prefix", Format = OptionFormat.EqualsSeparated)]
public virtual string? UserAgentPrefix { get; set; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the global-settings test for the added property

Adding UserAgentPrefix increases the number of public properties declared on SkopeoOptions from nine to ten, but Commands_Inherit_Nine_Public_Settings_Without_Promoting_Local_Flags in test/ModularPipelines.Skopeo.UnitTests/GlobalOptionsTests.cs:69–70 still asserts exactly nine. The Skopeo unit test suite will therefore fail on this generated update. Keep the generated option and update the handwritten test to reflect the new global setting, consistent with AGENTS.md treating current tool output as authoritative.

AGENTS.md reference: AGENTS.md:L42-L42

Useful? React with 👍 / 👎.


/// <summary>Appends diagnostic members without exposing command option values.</summary>
/// <param name="builder">The builder receiving the record members.</param>
/// <returns>True because a redaction marker was appended.</returns>
Expand Down
30 changes: 24 additions & 6 deletions src/ModularPipelines.Skopeo/Options/SkopeoSyncOptions.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out
public string? AppendSuffix { get; set; }

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--authfile", Format = OptionFormat.EqualsSeparated)]
public string? Authfile { get; set; }

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--dest-authfile", Format = OptionFormat.EqualsSeparated)]
public string? DestAuthfile { get; set; }
Expand Down Expand Up @@ -136,14 +136,20 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out
[CliOption("--dest-username", Format = OptionFormat.EqualsSeparated)]
public string? DestUsername { get; set; }

/// <summary>
/// Write the digests and Image References of the resulting images to the specified file, separated by newlines
/// </summary>
[CliOption("--digestfile", Format = OptionFormat.EqualsSeparated)]
public string? Digestfile { get; set; }

/// <summary>
/// Run without actually copying data
/// </summary>
[CliFlag("--dry-run")]
public bool? DryRun { get; set; }

/// <summary>
/// MANIFEST TYPE (oci, v2s1, or v2s2) to use when syncing image(s) to a destination (default is manifest type of source, with fallbacks)
/// MANIFEST TYPE (oci, v2s1, or v2s2) to use in the destination (default is manifest type of source, with fallbacks)
/// </summary>
[CliOption("--format", ShortForm = "-f", Format = OptionFormat.EqualsSeparated)]
public SkopeoSyncFormat? Format { get; set; }
Expand All @@ -161,11 +167,17 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out
public bool? PreserveDigests { get; set; }

/// <summary>
/// Do not copy signatures from SOURCE images
/// Do not copy signatures from source
/// </summary>
[CliFlag("--remove-signatures")]
public bool? RemoveSignatures { get; set; }

/// <summary>
/// Fixed delay between retries. If not set, retry uses an exponential backoff delay.
/// </summary>
[CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)]
public string? RetryDelay { get; set; }

/// <summary>
/// the number of times to possibly retry
/// </summary>
Expand Down Expand Up @@ -198,13 +210,19 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out
public string? SignBySigstorePrivateKey { get; set; }

/// <summary>
/// File that contains a passphrase for the --sign-by key
/// Sign the image using a Sequoia-PGP key with the specified FINGERPRINT
/// </summary>
[CliOption("--sign-by-sq-fingerprint", Format = OptionFormat.EqualsSeparated)]
public string? SignBySqFingerprint { get; set; }

/// <summary>
/// Read a passphrase for signing an image from PATH
/// </summary>
[CliOption("--sign-passphrase-file", Format = OptionFormat.EqualsSeparated)]
public string? SignPassphraseFile { get; set; }

/// <summary>
/// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json
/// </summary>
[CliOption("--src-authfile", Format = OptionFormat.EqualsSeparated)]
public string? SrcAuthfile { get; set; }
Expand Down
Loading