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