k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/pkg/kubelet/cm/dra/state/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright The Kubernetes Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by deepcopy-gen. DO NOT EDIT. 21 22 package state 23 24 import ( 25 v1alpha2 "k8s.io/api/resource/v1alpha2" 26 sets "k8s.io/apimachinery/pkg/util/sets" 27 ) 28 29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 30 func (in *ClaimInfoState) DeepCopyInto(out *ClaimInfoState) { 31 *out = *in 32 if in.PodUIDs != nil { 33 in, out := &in.PodUIDs, &out.PodUIDs 34 *out = make(sets.Set[string], len(*in)) 35 for key, val := range *in { 36 (*out)[key] = val 37 } 38 } 39 if in.ResourceHandles != nil { 40 in, out := &in.ResourceHandles, &out.ResourceHandles 41 *out = make([]v1alpha2.ResourceHandle, len(*in)) 42 for i := range *in { 43 (*in)[i].DeepCopyInto(&(*out)[i]) 44 } 45 } 46 if in.CDIDevices != nil { 47 in, out := &in.CDIDevices, &out.CDIDevices 48 *out = make(map[string][]string, len(*in)) 49 for key, val := range *in { 50 var outVal []string 51 if val == nil { 52 (*out)[key] = nil 53 } else { 54 in, out := &val, &outVal 55 *out = make([]string, len(*in)) 56 copy(*out, *in) 57 } 58 (*out)[key] = outVal 59 } 60 } 61 return 62 } 63 64 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaimInfoState. 65 func (in *ClaimInfoState) DeepCopy() *ClaimInfoState { 66 if in == nil { 67 return nil 68 } 69 out := new(ClaimInfoState) 70 in.DeepCopyInto(out) 71 return out 72 }