github.com/GoogleContainerTools/kpt@v1.0.0-beta.50.0.20240520170205-c25345ffcbee/pkg/api/kptfile/v1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 3 // Copyright 2023 The kpt Authors 4 // 5 // Licensed under the Apache License, Version 2.0 (the "License"); 6 // you may not use this file except in compliance with the License. 7 // You may obtain a copy of the License at 8 // 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, software 12 // distributed under the License is distributed on an "AS IS" BASIS, 13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 // See the License for the specific language governing permissions and 15 // limitations under the License. 16 17 // Code generated by controller-gen. DO NOT EDIT. 18 19 package v1 20 21 import () 22 23 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 24 func (in *Function) DeepCopyInto(out *Function) { 25 *out = *in 26 if in.ConfigMap != nil { 27 in, out := &in.ConfigMap, &out.ConfigMap 28 *out = make(map[string]string, len(*in)) 29 for key, val := range *in { 30 (*out)[key] = val 31 } 32 } 33 if in.Selectors != nil { 34 in, out := &in.Selectors, &out.Selectors 35 *out = make([]Selector, len(*in)) 36 for i := range *in { 37 (*in)[i].DeepCopyInto(&(*out)[i]) 38 } 39 } 40 if in.Exclusions != nil { 41 in, out := &in.Exclusions, &out.Exclusions 42 *out = make([]Selector, len(*in)) 43 for i := range *in { 44 (*in)[i].DeepCopyInto(&(*out)[i]) 45 } 46 } 47 } 48 49 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Function. 50 func (in *Function) DeepCopy() *Function { 51 if in == nil { 52 return nil 53 } 54 out := new(Function) 55 in.DeepCopyInto(out) 56 return out 57 } 58 59 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 60 func (in *Pipeline) DeepCopyInto(out *Pipeline) { 61 *out = *in 62 if in.Mutators != nil { 63 in, out := &in.Mutators, &out.Mutators 64 *out = make([]Function, len(*in)) 65 for i := range *in { 66 (*in)[i].DeepCopyInto(&(*out)[i]) 67 } 68 } 69 if in.Validators != nil { 70 in, out := &in.Validators, &out.Validators 71 *out = make([]Function, len(*in)) 72 for i := range *in { 73 (*in)[i].DeepCopyInto(&(*out)[i]) 74 } 75 } 76 } 77 78 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline. 79 func (in *Pipeline) DeepCopy() *Pipeline { 80 if in == nil { 81 return nil 82 } 83 out := new(Pipeline) 84 in.DeepCopyInto(out) 85 return out 86 } 87 88 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 89 func (in *Selector) DeepCopyInto(out *Selector) { 90 *out = *in 91 if in.Labels != nil { 92 in, out := &in.Labels, &out.Labels 93 *out = make(map[string]string, len(*in)) 94 for key, val := range *in { 95 (*out)[key] = val 96 } 97 } 98 if in.Annotations != nil { 99 in, out := &in.Annotations, &out.Annotations 100 *out = make(map[string]string, len(*in)) 101 for key, val := range *in { 102 (*out)[key] = val 103 } 104 } 105 } 106 107 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector. 108 func (in *Selector) DeepCopy() *Selector { 109 if in == nil { 110 return nil 111 } 112 out := new(Selector) 113 in.DeepCopyInto(out) 114 return out 115 }