api/v1alpha1/zz_generated.deepcopy.go (177 lines of code) (raw):

//go:build !ignore_autogenerated /* Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 import ( v1 "k8s.io/api/core/v1" networkingv1 "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *EndpointInfo) DeepCopyInto(out *EndpointInfo) { *out = *in if in.Except != nil { in, out := &in.Except, &out.Except *out = make([]NetworkAddress, len(*in)) copy(*out, *in) } if in.Ports != nil { in, out := &in.Ports, &out.Ports *out = make([]Port, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointInfo. func (in *EndpointInfo) DeepCopy() *EndpointInfo { if in == nil { return nil } out := new(EndpointInfo) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PodEndpoint) DeepCopyInto(out *PodEndpoint) { *out = *in } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodEndpoint. func (in *PodEndpoint) DeepCopy() *PodEndpoint { if in == nil { return nil } out := new(PodEndpoint) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyEndpoint) DeepCopyInto(out *PolicyEndpoint) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) out.Status = in.Status } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyEndpoint. func (in *PolicyEndpoint) DeepCopy() *PolicyEndpoint { if in == nil { return nil } out := new(PolicyEndpoint) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PolicyEndpoint) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyEndpointList) DeepCopyInto(out *PolicyEndpointList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PolicyEndpoint, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyEndpointList. func (in *PolicyEndpointList) DeepCopy() *PolicyEndpointList { if in == nil { return nil } out := new(PolicyEndpointList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PolicyEndpointList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyEndpointSpec) DeepCopyInto(out *PolicyEndpointSpec) { *out = *in if in.PodSelector != nil { in, out := &in.PodSelector, &out.PodSelector *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } out.PolicyRef = in.PolicyRef if in.PodIsolation != nil { in, out := &in.PodIsolation, &out.PodIsolation *out = make([]networkingv1.PolicyType, len(*in)) copy(*out, *in) } if in.PodSelectorEndpoints != nil { in, out := &in.PodSelectorEndpoints, &out.PodSelectorEndpoints *out = make([]PodEndpoint, len(*in)) copy(*out, *in) } if in.Ingress != nil { in, out := &in.Ingress, &out.Ingress *out = make([]EndpointInfo, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Egress != nil { in, out := &in.Egress, &out.Egress *out = make([]EndpointInfo, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyEndpointSpec. func (in *PolicyEndpointSpec) DeepCopy() *PolicyEndpointSpec { if in == nil { return nil } out := new(PolicyEndpointSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyEndpointStatus) DeepCopyInto(out *PolicyEndpointStatus) { *out = *in } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyEndpointStatus. func (in *PolicyEndpointStatus) DeepCopy() *PolicyEndpointStatus { if in == nil { return nil } out := new(PolicyEndpointStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyReference) DeepCopyInto(out *PolicyReference) { *out = *in } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyReference. func (in *PolicyReference) DeepCopy() *PolicyReference { if in == nil { return nil } out := new(PolicyReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Port) DeepCopyInto(out *Port) { *out = *in if in.Protocol != nil { in, out := &in.Protocol, &out.Protocol *out = new(v1.Protocol) **out = **in } if in.Port != nil { in, out := &in.Port, &out.Port *out = new(int32) **out = **in } if in.EndPort != nil { in, out := &in.EndPort, &out.EndPort *out = new(int32) **out = **in } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port. func (in *Port) DeepCopy() *Port { if in == nil { return nil } out := new(Port) in.DeepCopyInto(out) return out }