|
| 1 | +// <auto-generated> |
| 2 | +// This file was generated by ModularPipelines.OptionsGenerator. |
| 3 | +// Do not edit this file manually. |
| 4 | +// </auto-generated> |
| 5 | + |
| 6 | +#nullable enable |
| 7 | + |
| 8 | +using System.CodeDom.Compiler; |
| 9 | +using System.Diagnostics.CodeAnalysis; |
| 10 | +using ModularPipelines.Attributes; |
| 11 | +using ModularPipelines.Docker.Options; |
| 12 | + |
| 13 | +namespace ModularPipelines.Docker.Options; |
| 14 | + |
| 15 | +/// <summary> |
| 16 | +/// Start a build |
| 17 | +/// </summary> |
| 18 | +[GeneratedCode("ModularPipelines.OptionsGenerator", "")] |
| 19 | +[ExcludeFromCodeCoverage] |
| 20 | +[CliSubCommand("builder", "dap", "build")] |
| 21 | +public record DockerBuilderDapBuildOptions : DockerOptions |
| 22 | +{ |
| 23 | + /// <summary> |
| 24 | + /// Add a custom host-to-IP mapping (format: "host:ip") |
| 25 | + /// </summary> |
| 26 | + [CliOption("--add-host", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 27 | + public IEnumerable<string>? AddHost { get; set; } |
| 28 | + |
| 29 | + /// <summary> |
| 30 | + /// Allow extra privileged entitlement (e.g., "network.host", "security.insecure", "device") |
| 31 | + /// </summary> |
| 32 | + [CliOption("--allow", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 33 | + public IEnumerable<string>? Allow { get; set; } |
| 34 | + |
| 35 | + /// <summary> |
| 36 | + /// Add annotation to the image |
| 37 | + /// </summary> |
| 38 | + [CliOption("--annotation", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 39 | + public IEnumerable<string>? Annotation { get; set; } |
| 40 | + |
| 41 | + /// <summary> |
| 42 | + /// Attestation parameters (format: "type=sbom,generator=image") |
| 43 | + /// </summary> |
| 44 | + [CliOption("--attest", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 45 | + public IEnumerable<string>? Attest { get; set; } |
| 46 | + |
| 47 | + /// <summary> |
| 48 | + /// Set build-time variables |
| 49 | + /// </summary> |
| 50 | + [CliOption("--build-arg", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 51 | + public IEnumerable<string>? BuildArg { get; set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// Additional build contexts (e.g., name=path) |
| 55 | + /// </summary> |
| 56 | + [CliOption("--build-context", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 57 | + public IEnumerable<string>? BuildContext { get; set; } |
| 58 | + |
| 59 | + /// <summary> |
| 60 | + /// Override the configured builder instance (default "default") |
| 61 | + /// </summary> |
| 62 | + [CliOption("--builder", Format = OptionFormat.EqualsSeparated)] |
| 63 | + public string? Builder { get; set; } |
| 64 | + |
| 65 | + /// <summary> |
| 66 | + /// External cache sources (e.g., "user/app:cache", "type=local,src=path/to/dir") |
| 67 | + /// </summary> |
| 68 | + [CliOption("--cache-from", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 69 | + public IEnumerable<string>? CacheFrom { get; set; } |
| 70 | + |
| 71 | + /// <summary> |
| 72 | + /// Cache export destinations (e.g., "user/app:cache", "type=local,dest=path/to/dir") |
| 73 | + /// </summary> |
| 74 | + [CliOption("--cache-to", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 75 | + public IEnumerable<string>? CacheTo { get; set; } |
| 76 | + |
| 77 | + /// <summary> |
| 78 | + /// Set method for evaluating build ("check", "outline", "targets") (default "build") |
| 79 | + /// </summary> |
| 80 | + [CliOption("--call", Format = OptionFormat.EqualsSeparated)] |
| 81 | + public string? Call { get; set; } |
| 82 | + |
| 83 | + /// <summary> |
| 84 | + /// Set the parent cgroup for the "RUN" instructions during build |
| 85 | + /// </summary> |
| 86 | + [CliOption("--cgroup-parent", Format = OptionFormat.EqualsSeparated)] |
| 87 | + public string? CgroupParent { get; set; } |
| 88 | + |
| 89 | + /// <summary> |
| 90 | + /// Shorthand for "--call=check" |
| 91 | + /// </summary> |
| 92 | + [CliFlag("--check")] |
| 93 | + public bool? Check { get; set; } |
| 94 | + |
| 95 | + /// <summary> |
| 96 | + /// Enable debug logging |
| 97 | + /// </summary> |
| 98 | + [CliFlag("--debug", ShortForm = "-D")] |
| 99 | + public bool? Debug { get; set; } |
| 100 | + |
| 101 | + /// <summary> |
| 102 | + /// Name of the Dockerfile (default: "PATH/Dockerfile") |
| 103 | + /// </summary> |
| 104 | + [CliOption("--file", ShortForm = "-f", Format = OptionFormat.EqualsSeparated)] |
| 105 | + public string? File { get; set; } |
| 106 | + |
| 107 | + /// <summary> |
| 108 | + /// Write the image ID to a file |
| 109 | + /// </summary> |
| 110 | + [CliOption("--iidfile", Format = OptionFormat.EqualsSeparated)] |
| 111 | + public string? Iidfile { get; set; } |
| 112 | + |
| 113 | + /// <summary> |
| 114 | + /// Set metadata for an image |
| 115 | + /// </summary> |
| 116 | + [CliOption("--label", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 117 | + public IEnumerable<string>? Label { get; set; } |
| 118 | + |
| 119 | + /// <summary> |
| 120 | + /// Shorthand for "--output=type=docker" |
| 121 | + /// </summary> |
| 122 | + [CliFlag("--load")] |
| 123 | + public bool? Load { get; set; } |
| 124 | + |
| 125 | + /// <summary> |
| 126 | + /// Write build result metadata to a file |
| 127 | + /// </summary> |
| 128 | + [CliOption("--metadata-file", Format = OptionFormat.EqualsSeparated)] |
| 129 | + public string? MetadataFile { get; set; } |
| 130 | + |
| 131 | + /// <summary> |
| 132 | + /// Set the networking mode for the "RUN" instructions during build (default "default") |
| 133 | + /// </summary> |
| 134 | + [CliOption("--network", Format = OptionFormat.EqualsSeparated)] |
| 135 | + public string? Network { get; set; } |
| 136 | + |
| 137 | + /// <summary> |
| 138 | + /// Do not use cache when building the image |
| 139 | + /// </summary> |
| 140 | + [CliFlag("--no-cache")] |
| 141 | + public bool? NoCache { get; set; } |
| 142 | + |
| 143 | + /// <summary> |
| 144 | + /// Do not cache specified stages |
| 145 | + /// </summary> |
| 146 | + [CliOption("--no-cache-filter", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 147 | + public IEnumerable<string>? NoCacheFilter { get; set; } |
| 148 | + |
| 149 | + /// <summary> |
| 150 | + /// Output destination (format: "type=local,dest=path") |
| 151 | + /// </summary> |
| 152 | + [CliOption("--output", ShortForm = "-o", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 153 | + public IEnumerable<string>? Output { get; set; } |
| 154 | + |
| 155 | + /// <summary> |
| 156 | + /// Set target platform for build |
| 157 | + /// </summary> |
| 158 | + [CliOption("--platform", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 159 | + public IEnumerable<string>? Platform { get; set; } |
| 160 | + |
| 161 | + /// <summary> |
| 162 | + /// Policy configuration (format: "filename=path[,filename=path][,reset=true|false][,disabled=true|false][,strict=true|false][,log-level=level]") |
| 163 | + /// </summary> |
| 164 | + [CliOption("--policy", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 165 | + public IEnumerable<string>? Policy { get; set; } |
| 166 | + |
| 167 | + /// <summary> |
| 168 | + /// Set type of progress output ("auto", "none", "plain", "quiet", "rawjson", "tty"). Use plain to show container output (default "auto") |
| 169 | + /// </summary> |
| 170 | + [CliOption("--progress", Format = OptionFormat.EqualsSeparated)] |
| 171 | + public string? Progress { get; set; } |
| 172 | + |
| 173 | + /// <summary> |
| 174 | + /// Shorthand for "--attest=type=provenance" |
| 175 | + /// </summary> |
| 176 | + [CliOption("--provenance", Format = OptionFormat.EqualsSeparated)] |
| 177 | + public string? Provenance { get; set; } |
| 178 | + |
| 179 | + /// <summary> |
| 180 | + /// Always attempt to pull all referenced images |
| 181 | + /// </summary> |
| 182 | + [CliFlag("--pull")] |
| 183 | + public bool? Pull { get; set; } |
| 184 | + |
| 185 | + /// <summary> |
| 186 | + /// Shorthand for "--output=type=registry,unpack=false" |
| 187 | + /// </summary> |
| 188 | + [CliFlag("--push")] |
| 189 | + public bool? Push { get; set; } |
| 190 | + |
| 191 | + /// <summary> |
| 192 | + /// Suppress the build output and print image ID on success |
| 193 | + /// </summary> |
| 194 | + [CliFlag("--quiet", ShortForm = "-q")] |
| 195 | + public bool? Quiet { get; set; } |
| 196 | + |
| 197 | + /// <summary> |
| 198 | + /// Shorthand for "--attest=type=sbom" |
| 199 | + /// </summary> |
| 200 | + [CliOption("--sbom", Format = OptionFormat.EqualsSeparated)] |
| 201 | + public string? Sbom { get; set; } |
| 202 | + |
| 203 | + /// <summary> |
| 204 | + /// Secret to expose to the build |
| 205 | + /// </summary> |
| 206 | + [SecretValue] |
| 207 | + [CliOption("--secret", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 208 | + public IEnumerable<string>? Secret { get; set; } |
| 209 | + |
| 210 | + /// <summary> |
| 211 | + /// Shared memory size for build containers |
| 212 | + /// </summary> |
| 213 | + [CliOption("--shm-size", Format = OptionFormat.EqualsSeparated)] |
| 214 | + public string? ShmSize { get; set; } |
| 215 | + |
| 216 | + /// <summary> |
| 217 | + /// SSH agent socket or keys to expose |
| 218 | + /// </summary> |
| 219 | + [CliOption("--ssh", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 220 | + public IEnumerable<string>? Ssh { get; set; } |
| 221 | + |
| 222 | + /// <summary> |
| 223 | + /// Image identifier (format: "[registry/]repository[:tag]") |
| 224 | + /// </summary> |
| 225 | + [CliOption("--tag", ShortForm = "-t", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 226 | + public IEnumerable<string>? Tag { get; set; } |
| 227 | + |
| 228 | + /// <summary> |
| 229 | + /// Set the target build stage to build |
| 230 | + /// </summary> |
| 231 | + [CliOption("--target", Format = OptionFormat.EqualsSeparated)] |
| 232 | + public string? Target { get; set; } |
| 233 | + |
| 234 | + /// <summary> |
| 235 | + /// Ulimit options (default []) |
| 236 | + /// </summary> |
| 237 | + [CliOption("--ulimit", Format = OptionFormat.EqualsSeparated)] |
| 238 | + public string? Ulimit { get; set; } |
| 239 | + |
| 240 | + [CliArgument(0, Placement = ArgumentPlacement.BeforeOptions)] |
| 241 | + public string? Options { get; set; } |
| 242 | + |
| 243 | +} |
0 commit comments