blob: 3aec33a5441ab2f6f1aba8f36786b6c9746d754a (
plain)
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
// Code generated by go generate; DO NOT EDIT.
package generate
import (
"net/url"
"github.com/containers/podman/v4/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *SystemdOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *SystemdOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithUseName set field UseName to given value
func (o *SystemdOptions) WithUseName(value bool) *SystemdOptions {
o.UseName = &value
return o
}
// GetUseName returns value of field UseName
func (o *SystemdOptions) GetUseName() bool {
if o.UseName == nil {
var z bool
return z
}
return *o.UseName
}
// WithNew set field New to given value
func (o *SystemdOptions) WithNew(value bool) *SystemdOptions {
o.New = &value
return o
}
// GetNew returns value of field New
func (o *SystemdOptions) GetNew() bool {
if o.New == nil {
var z bool
return z
}
return *o.New
}
// WithNoHeader set field NoHeader to given value
func (o *SystemdOptions) WithNoHeader(value bool) *SystemdOptions {
o.NoHeader = &value
return o
}
// GetNoHeader returns value of field NoHeader
func (o *SystemdOptions) GetNoHeader() bool {
if o.NoHeader == nil {
var z bool
return z
}
return *o.NoHeader
}
// WithTemplateUnitFile set field TemplateUnitFile to given value
func (o *SystemdOptions) WithTemplateUnitFile(value bool) *SystemdOptions {
o.TemplateUnitFile = &value
return o
}
// GetTemplateUnitFile returns value of field TemplateUnitFile
func (o *SystemdOptions) GetTemplateUnitFile() bool {
if o.TemplateUnitFile == nil {
var z bool
return z
}
return *o.TemplateUnitFile
}
// WithRestartPolicy set field RestartPolicy to given value
func (o *SystemdOptions) WithRestartPolicy(value string) *SystemdOptions {
o.RestartPolicy = &value
return o
}
// GetRestartPolicy returns value of field RestartPolicy
func (o *SystemdOptions) GetRestartPolicy() string {
if o.RestartPolicy == nil {
var z string
return z
}
return *o.RestartPolicy
}
// WithRestartSec set field RestartSec to given value
func (o *SystemdOptions) WithRestartSec(value uint) *SystemdOptions {
o.RestartSec = &value
return o
}
// GetRestartSec returns value of field RestartSec
func (o *SystemdOptions) GetRestartSec() uint {
if o.RestartSec == nil {
var z uint
return z
}
return *o.RestartSec
}
// WithStartTimeout set field StartTimeout to given value
func (o *SystemdOptions) WithStartTimeout(value uint) *SystemdOptions {
o.StartTimeout = &value
return o
}
// GetStartTimeout returns value of field StartTimeout
func (o *SystemdOptions) GetStartTimeout() uint {
if o.StartTimeout == nil {
var z uint
return z
}
return *o.StartTimeout
}
// WithStopTimeout set field StopTimeout to given value
func (o *SystemdOptions) WithStopTimeout(value uint) *SystemdOptions {
o.StopTimeout = &value
return o
}
// GetStopTimeout returns value of field StopTimeout
func (o *SystemdOptions) GetStopTimeout() uint {
if o.StopTimeout == nil {
var z uint
return z
}
return *o.StopTimeout
}
// WithContainerPrefix set field ContainerPrefix to given value
func (o *SystemdOptions) WithContainerPrefix(value string) *SystemdOptions {
o.ContainerPrefix = &value
return o
}
// GetContainerPrefix returns value of field ContainerPrefix
func (o *SystemdOptions) GetContainerPrefix() string {
if o.ContainerPrefix == nil {
var z string
return z
}
return *o.ContainerPrefix
}
// WithPodPrefix set field PodPrefix to given value
func (o *SystemdOptions) WithPodPrefix(value string) *SystemdOptions {
o.PodPrefix = &value
return o
}
// GetPodPrefix returns value of field PodPrefix
func (o *SystemdOptions) GetPodPrefix() string {
if o.PodPrefix == nil {
var z string
return z
}
return *o.PodPrefix
}
// WithSeparator set field Separator to given value
func (o *SystemdOptions) WithSeparator(value string) *SystemdOptions {
o.Separator = &value
return o
}
// GetSeparator returns value of field Separator
func (o *SystemdOptions) GetSeparator() string {
if o.Separator == nil {
var z string
return z
}
return *o.Separator
}
// WithWants set field Wants to given value
func (o *SystemdOptions) WithWants(value []string) *SystemdOptions {
o.Wants = &value
return o
}
// GetWants returns value of field Wants
func (o *SystemdOptions) GetWants() []string {
if o.Wants == nil {
var z []string
return z
}
return *o.Wants
}
// WithAfter set field After to given value
func (o *SystemdOptions) WithAfter(value []string) *SystemdOptions {
o.After = &value
return o
}
// GetAfter returns value of field After
func (o *SystemdOptions) GetAfter() []string {
if o.After == nil {
var z []string
return z
}
return *o.After
}
// WithRequires set field Requires to given value
func (o *SystemdOptions) WithRequires(value []string) *SystemdOptions {
o.Requires = &value
return o
}
// GetRequires returns value of field Requires
func (o *SystemdOptions) GetRequires() []string {
if o.Requires == nil {
var z []string
return z
}
return *o.Requires
}
// WithAdditionalEnvVariables set field AdditionalEnvVariables to given value
func (o *SystemdOptions) WithAdditionalEnvVariables(value []string) *SystemdOptions {
o.AdditionalEnvVariables = &value
return o
}
// GetAdditionalEnvVariables returns value of field AdditionalEnvVariables
func (o *SystemdOptions) GetAdditionalEnvVariables() []string {
if o.AdditionalEnvVariables == nil {
var z []string
return z
}
return *o.AdditionalEnvVariables
}
|