1
2
3
4
5 package v1alpha1
6
7 import (
8 "edge-infra.dev/pkg/k8s/meta"
9 "edge-infra.dev/pkg/k8s/runtime/inventory"
10 "k8s.io/apimachinery/pkg/apis/meta/v1"
11 runtime "k8s.io/apimachinery/pkg/runtime"
12 )
13
14
15 func (in *ApplyOptions) DeepCopyInto(out *ApplyOptions) {
16 *out = *in
17 if in.Timeout != nil {
18 in, out := &in.Timeout, &out.Timeout
19 *out = new(v1.Duration)
20 **out = **in
21 }
22 if in.Interval != nil {
23 in, out := &in.Interval, &out.Interval
24 *out = new(v1.Duration)
25 **out = **in
26 }
27 if in.RetryInterval != nil {
28 in, out := &in.RetryInterval, &out.RetryInterval
29 *out = new(v1.Duration)
30 **out = **in
31 }
32 }
33
34
35 func (in *ApplyOptions) DeepCopy() *ApplyOptions {
36 if in == nil {
37 return nil
38 }
39 out := new(ApplyOptions)
40 in.DeepCopyInto(out)
41 return out
42 }
43
44
45 func (in *Artifact) DeepCopyInto(out *Artifact) {
46 *out = *in
47 out.BaseArtifact = in.BaseArtifact
48 }
49
50
51 func (in *Artifact) DeepCopy() *Artifact {
52 if in == nil {
53 return nil
54 }
55 out := new(Artifact)
56 in.DeepCopyInto(out)
57 return out
58 }
59
60
61 func (in *BaseArtifact) DeepCopyInto(out *BaseArtifact) {
62 *out = *in
63 }
64
65
66 func (in *BaseArtifact) DeepCopy() *BaseArtifact {
67 if in == nil {
68 return nil
69 }
70 out := new(BaseArtifact)
71 in.DeepCopyInto(out)
72 return out
73 }
74
75
76 func (in *PackagePullOptions) DeepCopyInto(out *PackagePullOptions) {
77 *out = *in
78 }
79
80
81 func (in *PackagePullOptions) DeepCopy() *PackagePullOptions {
82 if in == nil {
83 return nil
84 }
85 out := new(PackagePullOptions)
86 in.DeepCopyInto(out)
87 return out
88 }
89
90
91 func (in *Parameters) DeepCopyInto(out *Parameters) {
92 *out = *in
93 if in.Variables != nil {
94 in, out := &in.Variables, &out.Variables
95 *out = make(map[string]string, len(*in))
96 for key, val := range *in {
97 (*out)[key] = val
98 }
99 }
100 if in.ConfigMapRef != nil {
101 in, out := &in.ConfigMapRef, &out.ConfigMapRef
102 *out = new(meta.NamespacedObjectReference)
103 **out = **in
104 }
105 if in.Mapping != nil {
106 in, out := &in.Mapping, &out.Mapping
107 *out = make(map[string]string, len(*in))
108 for key, val := range *in {
109 (*out)[key] = val
110 }
111 }
112 }
113
114
115 func (in *Parameters) DeepCopy() *Parameters {
116 if in == nil {
117 return nil
118 }
119 out := new(Parameters)
120 in.DeepCopyInto(out)
121 return out
122 }
123
124
125 func (in *Pin) DeepCopyInto(out *Pin) {
126 *out = *in
127 }
128
129
130 func (in *Pin) DeepCopy() *Pin {
131 if in == nil {
132 return nil
133 }
134 out := new(Pin)
135 in.DeepCopyInto(out)
136 return out
137 }
138
139
140 func (in *Resolution) DeepCopyInto(out *Resolution) {
141 *out = *in
142 if in.Pins != nil {
143 in, out := &in.Pins, &out.Pins
144 *out = make([]Pin, len(*in))
145 copy(*out, *in)
146 }
147 }
148
149
150 func (in *Resolution) DeepCopy() *Resolution {
151 if in == nil {
152 return nil
153 }
154 out := new(Resolution)
155 in.DeepCopyInto(out)
156 return out
157 }
158
159
160 func (in *Shipment) DeepCopyInto(out *Shipment) {
161 *out = *in
162 out.TypeMeta = in.TypeMeta
163 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
164 in.Spec.DeepCopyInto(&out.Spec)
165 in.Status.DeepCopyInto(&out.Status)
166 }
167
168
169 func (in *Shipment) DeepCopy() *Shipment {
170 if in == nil {
171 return nil
172 }
173 out := new(Shipment)
174 in.DeepCopyInto(out)
175 return out
176 }
177
178
179 func (in *Shipment) DeepCopyObject() runtime.Object {
180 if c := in.DeepCopy(); c != nil {
181 return c
182 }
183 return nil
184 }
185
186
187 func (in *ShipmentList) DeepCopyInto(out *ShipmentList) {
188 *out = *in
189 out.TypeMeta = in.TypeMeta
190 in.ListMeta.DeepCopyInto(&out.ListMeta)
191 if in.Items != nil {
192 in, out := &in.Items, &out.Items
193 *out = make([]Shipment, len(*in))
194 for i := range *in {
195 (*in)[i].DeepCopyInto(&(*out)[i])
196 }
197 }
198 }
199
200
201 func (in *ShipmentList) DeepCopy() *ShipmentList {
202 if in == nil {
203 return nil
204 }
205 out := new(ShipmentList)
206 in.DeepCopyInto(out)
207 return out
208 }
209
210
211 func (in *ShipmentList) DeepCopyObject() runtime.Object {
212 if c := in.DeepCopy(); c != nil {
213 return c
214 }
215 return nil
216 }
217
218
219 func (in *ShipmentSpec) DeepCopyInto(out *ShipmentSpec) {
220 *out = *in
221 in.ApplyOptions.DeepCopyInto(&out.ApplyOptions)
222 in.UnpackOptions.DeepCopyInto(&out.UnpackOptions)
223 out.PackagePullOptions = in.PackagePullOptions
224 if in.Pallets != nil {
225 in, out := &in.Pallets, &out.Pallets
226 *out = make([]BaseArtifact, len(*in))
227 copy(*out, *in)
228 }
229 in.Resolution.DeepCopyInto(&out.Resolution)
230 if in.Rendering != nil {
231 in, out := &in.Rendering, &out.Rendering
232 *out = make([]Parameters, len(*in))
233 for i := range *in {
234 (*in)[i].DeepCopyInto(&(*out)[i])
235 }
236 }
237 out.Credentials = in.Credentials
238 }
239
240
241 func (in *ShipmentSpec) DeepCopy() *ShipmentSpec {
242 if in == nil {
243 return nil
244 }
245 out := new(ShipmentSpec)
246 in.DeepCopyInto(out)
247 return out
248 }
249
250
251 func (in *ShipmentStatus) DeepCopyInto(out *ShipmentStatus) {
252 *out = *in
253 if in.Conditions != nil {
254 in, out := &in.Conditions, &out.Conditions
255 *out = make([]v1.Condition, len(*in))
256 for i := range *in {
257 (*in)[i].DeepCopyInto(&(*out)[i])
258 }
259 }
260 if in.Inventory != nil {
261 in, out := &in.Inventory, &out.Inventory
262 *out = new(inventory.ResourceInventory)
263 (*in).DeepCopyInto(*out)
264 }
265 if in.LastApplied != nil {
266 in, out := &in.LastApplied, &out.LastApplied
267 *out = make([]Pin, len(*in))
268 copy(*out, *in)
269 }
270 if in.LastAttempted != nil {
271 in, out := &in.LastAttempted, &out.LastAttempted
272 *out = make([]Pin, len(*in))
273 copy(*out, *in)
274 }
275 out.RequestStatus = in.RequestStatus
276 }
277
278
279 func (in *ShipmentStatus) DeepCopy() *ShipmentStatus {
280 if in == nil {
281 return nil
282 }
283 out := new(ShipmentStatus)
284 in.DeepCopyInto(out)
285 return out
286 }
287
288
289 func (in *UnpackOptions) DeepCopyInto(out *UnpackOptions) {
290 *out = *in
291 if in.Capabilities != nil {
292 in, out := &in.Capabilities, &out.Capabilities
293 *out = make([]string, len(*in))
294 copy(*out, *in)
295 }
296 }
297
298
299 func (in *UnpackOptions) DeepCopy() *UnpackOptions {
300 if in == nil {
301 return nil
302 }
303 out := new(UnpackOptions)
304 in.DeepCopyInto(out)
305 return out
306 }
307
308
309 func (in *UnpackedPallet) DeepCopyInto(out *UnpackedPallet) {
310 *out = *in
311 out.TypeMeta = in.TypeMeta
312 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
313 in.Spec.DeepCopyInto(&out.Spec)
314 in.Status.DeepCopyInto(&out.Status)
315 }
316
317
318 func (in *UnpackedPallet) DeepCopy() *UnpackedPallet {
319 if in == nil {
320 return nil
321 }
322 out := new(UnpackedPallet)
323 in.DeepCopyInto(out)
324 return out
325 }
326
327
328 func (in *UnpackedPallet) DeepCopyObject() runtime.Object {
329 if c := in.DeepCopy(); c != nil {
330 return c
331 }
332 return nil
333 }
334
335
336 func (in *UnpackedPalletList) DeepCopyInto(out *UnpackedPalletList) {
337 *out = *in
338 out.TypeMeta = in.TypeMeta
339 in.ListMeta.DeepCopyInto(&out.ListMeta)
340 if in.Items != nil {
341 in, out := &in.Items, &out.Items
342 *out = make([]UnpackedPallet, len(*in))
343 for i := range *in {
344 (*in)[i].DeepCopyInto(&(*out)[i])
345 }
346 }
347 }
348
349
350 func (in *UnpackedPalletList) DeepCopy() *UnpackedPalletList {
351 if in == nil {
352 return nil
353 }
354 out := new(UnpackedPalletList)
355 in.DeepCopyInto(out)
356 return out
357 }
358
359
360 func (in *UnpackedPalletList) DeepCopyObject() runtime.Object {
361 if c := in.DeepCopy(); c != nil {
362 return c
363 }
364 return nil
365 }
366
367
368 func (in *UnpackedPalletSpec) DeepCopyInto(out *UnpackedPalletSpec) {
369 *out = *in
370 out.Artifact = in.Artifact
371 in.ApplyOptions.DeepCopyInto(&out.ApplyOptions)
372 in.UnpackOptions.DeepCopyInto(&out.UnpackOptions)
373 out.PackagePullOptions = in.PackagePullOptions
374 if in.Parameters != nil {
375 in, out := &in.Parameters, &out.Parameters
376 *out = make(map[string]string, len(*in))
377 for key, val := range *in {
378 (*out)[key] = val
379 }
380 }
381 if in.DependsOn != nil {
382 in, out := &in.DependsOn, &out.DependsOn
383 *out = make([]meta.LocalObjectReference, len(*in))
384 copy(*out, *in)
385 }
386 out.Credentials = in.Credentials
387 }
388
389
390 func (in *UnpackedPalletSpec) DeepCopy() *UnpackedPalletSpec {
391 if in == nil {
392 return nil
393 }
394 out := new(UnpackedPalletSpec)
395 in.DeepCopyInto(out)
396 return out
397 }
398
399
400 func (in *UnpackedPalletStatus) DeepCopyInto(out *UnpackedPalletStatus) {
401 *out = *in
402 if in.Conditions != nil {
403 in, out := &in.Conditions, &out.Conditions
404 *out = make([]v1.Condition, len(*in))
405 for i := range *in {
406 (*in)[i].DeepCopyInto(&(*out)[i])
407 }
408 }
409 if in.Inventory != nil {
410 in, out := &in.Inventory, &out.Inventory
411 *out = new(inventory.ResourceInventory)
412 (*in).DeepCopyInto(*out)
413 }
414 in.StatusAge.DeepCopyInto(&out.StatusAge)
415 out.RequestStatus = in.RequestStatus
416 }
417
418
419 func (in *UnpackedPalletStatus) DeepCopy() *UnpackedPalletStatus {
420 if in == nil {
421 return nil
422 }
423 out := new(UnpackedPalletStatus)
424 in.DeepCopyInto(out)
425 return out
426 }
427
View as plain text