-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathBuildahRunOptions.Generated.cs
More file actions
161 lines (134 loc) · 5.32 KB
/
BuildahRunOptions.Generated.cs
File metadata and controls
161 lines (134 loc) · 5.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
// <auto-generated>
// This file was generated by ModularPipelines.OptionsGenerator.
// Do not edit this file manually.
// </auto-generated>
#nullable enable
using System.CodeDom.Compiler;
using System.Diagnostics.CodeAnalysis;
using ModularPipelines.Attributes;
using ModularPipelines.Buildah.Options;
namespace ModularPipelines.Buildah.Options;
/// <summary>
/// Runs a specified command using the container's root filesystem as a root
/// </summary>
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
[ExcludeFromCodeCoverage]
[CliSubCommand("run")]
public record BuildahRunOptions : BuildahOptions
{
/// <summary>
/// add an entry for this operation to the image's history. Use BUILDAH_HISTORY environment variable to override. (default false)
/// </summary>
[CliFlag("--add-history")]
public bool? AddHistory { get; set; }
/// <summary>
/// add the specified capability (default [])
/// </summary>
[CliOption("--cap-add", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? CapAdd { get; set; }
/// <summary>
/// drop the specified capability (default [])
/// </summary>
[CliOption("--cap-drop", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? CapDrop { get; set; }
/// <summary>
/// 'private', or 'host'
/// </summary>
[CliOption("--cgroupns", Format = OptionFormat.EqualsSeparated)]
public string? Cgroupns { get; set; }
/// <summary>
/// context directory path
/// </summary>
[CliOption("--contextdir", Format = OptionFormat.EqualsSeparated)]
public string? Contextdir { get; set; }
/// <summary>
/// add environment variable to be set temporarily when running command (default [])
/// </summary>
[CliOption("--env", ShortForm = "-e", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Env { get; set; }
/// <summary>
/// help for run
/// </summary>
[CliFlag("--help", ShortForm = "-h")]
public bool? Help { get; set; }
/// <summary>
/// set the hostname inside of the container
/// </summary>
[CliOption("--hostname", Format = OptionFormat.EqualsSeparated)]
public string? Hostname { get; set; }
/// <summary>
/// 'private', path of IPC namespace to join, or 'host'
/// </summary>
[CliOption("--ipc", Format = OptionFormat.EqualsSeparated)]
public string? Ipc { get; set; }
/// <summary>
/// type of process isolation to use. Use BUILDAH_ISOLATION environment variable to override.
/// </summary>
[CliOption("--isolation", Format = OptionFormat.EqualsSeparated)]
public string? Isolation { get; set; }
/// <summary>
/// attach a filesystem mount to the container (default [])
/// </summary>
[CliOption("--mount", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Mount { get; set; }
/// <summary>
/// 'private', 'none', 'ns:path' of network namespace to join, or 'host'
/// </summary>
[CliOption("--network", Format = OptionFormat.EqualsSeparated)]
public string? Network { get; set; }
/// <summary>
/// do not override the /etc/hostname file within the container
/// </summary>
[CliFlag("--no-hostname")]
public bool? NoHostname { get; set; }
/// <summary>
/// do not override the /etc/hosts file within the container
/// </summary>
[CliFlag("--no-hosts")]
public bool? NoHosts { get; set; }
/// <summary>
/// do not use pivot root to jail process inside rootfs
/// </summary>
[CliFlag("--no-pivot")]
public bool? NoPivot { get; set; }
/// <summary>
/// private, path of PID namespace to join, or 'host'
/// </summary>
[CliOption("--pid", Format = OptionFormat.EqualsSeparated)]
public string? Pid { get; set; }
/// <summary>
/// path to an alternate OCI runtime (default "crun")
/// </summary>
[CliOption("--runtime", Format = OptionFormat.EqualsSeparated)]
public string? Runtime { get; set; }
/// <summary>
/// add global flags for the container runtime
/// </summary>
[CliOption("--runtime-flag", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? RuntimeFlag { get; set; }
/// <summary>
/// allocate a pseudo-TTY in the container
/// </summary>
[CliFlag("--terminal", ShortForm = "-t")]
public bool? Terminal { get; set; }
/// <summary>
/// user[:group] to run the command as
/// </summary>
[CliOption("--user", Format = OptionFormat.EqualsSeparated)]
public string? User { get; set; }
/// <summary>
/// private, :path of UTS namespace to join, or 'host'
/// </summary>
[CliOption("--uts", Format = OptionFormat.EqualsSeparated)]
public string? Uts { get; set; }
/// <summary>
/// bind mount a host location into the container while running the command
/// </summary>
[CliOption("--volume", ShortForm = "-v", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Volume { get; set; }
/// <summary>
/// temporarily set working directory for command (default to container's workingdir)
/// </summary>
[CliOption("--workingdir", Format = OptionFormat.EqualsSeparated)]
public string? Workingdir { get; set; }
}