Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 1 | // +build !ignore_autogenerated |
| 2 | |
| 3 | /* |
| 4 | Copyright The Kubernetes 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 | |
| 19 | // Code generated by deepcopy-gen. DO NOT EDIT. |
| 20 | |
| 21 | package v1 |
| 22 | |
| 23 | import ( |
| 24 | corev1 "k8s.io/api/core/v1" |
| 25 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 26 | runtime "k8s.io/apimachinery/pkg/runtime" |
| 27 | intstr "k8s.io/apimachinery/pkg/util/intstr" |
| 28 | ) |
| 29 | |
| 30 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 31 | func (in *IPBlock) DeepCopyInto(out *IPBlock) { |
| 32 | *out = *in |
| 33 | if in.Except != nil { |
| 34 | in, out := &in.Except, &out.Except |
| 35 | *out = make([]string, len(*in)) |
| 36 | copy(*out, *in) |
| 37 | } |
| 38 | return |
| 39 | } |
| 40 | |
| 41 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock. |
| 42 | func (in *IPBlock) DeepCopy() *IPBlock { |
| 43 | if in == nil { |
| 44 | return nil |
| 45 | } |
| 46 | out := new(IPBlock) |
| 47 | in.DeepCopyInto(out) |
| 48 | return out |
| 49 | } |
| 50 | |
| 51 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 52 | func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) { |
| 53 | *out = *in |
| 54 | out.TypeMeta = in.TypeMeta |
| 55 | in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) |
| 56 | in.Spec.DeepCopyInto(&out.Spec) |
| 57 | return |
| 58 | } |
| 59 | |
| 60 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy. |
| 61 | func (in *NetworkPolicy) DeepCopy() *NetworkPolicy { |
| 62 | if in == nil { |
| 63 | return nil |
| 64 | } |
| 65 | out := new(NetworkPolicy) |
| 66 | in.DeepCopyInto(out) |
| 67 | return out |
| 68 | } |
| 69 | |
| 70 | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. |
| 71 | func (in *NetworkPolicy) DeepCopyObject() runtime.Object { |
| 72 | if c := in.DeepCopy(); c != nil { |
| 73 | return c |
| 74 | } |
| 75 | return nil |
| 76 | } |
| 77 | |
| 78 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 79 | func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) { |
| 80 | *out = *in |
| 81 | if in.Ports != nil { |
| 82 | in, out := &in.Ports, &out.Ports |
| 83 | *out = make([]NetworkPolicyPort, len(*in)) |
| 84 | for i := range *in { |
| 85 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 86 | } |
| 87 | } |
| 88 | if in.To != nil { |
| 89 | in, out := &in.To, &out.To |
| 90 | *out = make([]NetworkPolicyPeer, len(*in)) |
| 91 | for i := range *in { |
| 92 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 93 | } |
| 94 | } |
| 95 | return |
| 96 | } |
| 97 | |
| 98 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule. |
| 99 | func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule { |
| 100 | if in == nil { |
| 101 | return nil |
| 102 | } |
| 103 | out := new(NetworkPolicyEgressRule) |
| 104 | in.DeepCopyInto(out) |
| 105 | return out |
| 106 | } |
| 107 | |
| 108 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 109 | func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) { |
| 110 | *out = *in |
| 111 | if in.Ports != nil { |
| 112 | in, out := &in.Ports, &out.Ports |
| 113 | *out = make([]NetworkPolicyPort, len(*in)) |
| 114 | for i := range *in { |
| 115 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 116 | } |
| 117 | } |
| 118 | if in.From != nil { |
| 119 | in, out := &in.From, &out.From |
| 120 | *out = make([]NetworkPolicyPeer, len(*in)) |
| 121 | for i := range *in { |
| 122 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 123 | } |
| 124 | } |
| 125 | return |
| 126 | } |
| 127 | |
| 128 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule. |
| 129 | func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule { |
| 130 | if in == nil { |
| 131 | return nil |
| 132 | } |
| 133 | out := new(NetworkPolicyIngressRule) |
| 134 | in.DeepCopyInto(out) |
| 135 | return out |
| 136 | } |
| 137 | |
| 138 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 139 | func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) { |
| 140 | *out = *in |
| 141 | out.TypeMeta = in.TypeMeta |
| 142 | in.ListMeta.DeepCopyInto(&out.ListMeta) |
| 143 | if in.Items != nil { |
| 144 | in, out := &in.Items, &out.Items |
| 145 | *out = make([]NetworkPolicy, len(*in)) |
| 146 | for i := range *in { |
| 147 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 148 | } |
| 149 | } |
| 150 | return |
| 151 | } |
| 152 | |
| 153 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList. |
| 154 | func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList { |
| 155 | if in == nil { |
| 156 | return nil |
| 157 | } |
| 158 | out := new(NetworkPolicyList) |
| 159 | in.DeepCopyInto(out) |
| 160 | return out |
| 161 | } |
| 162 | |
| 163 | // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. |
| 164 | func (in *NetworkPolicyList) DeepCopyObject() runtime.Object { |
| 165 | if c := in.DeepCopy(); c != nil { |
| 166 | return c |
| 167 | } |
| 168 | return nil |
| 169 | } |
| 170 | |
| 171 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 172 | func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) { |
| 173 | *out = *in |
| 174 | if in.PodSelector != nil { |
| 175 | in, out := &in.PodSelector, &out.PodSelector |
| 176 | *out = new(metav1.LabelSelector) |
| 177 | (*in).DeepCopyInto(*out) |
| 178 | } |
| 179 | if in.NamespaceSelector != nil { |
| 180 | in, out := &in.NamespaceSelector, &out.NamespaceSelector |
| 181 | *out = new(metav1.LabelSelector) |
| 182 | (*in).DeepCopyInto(*out) |
| 183 | } |
| 184 | if in.IPBlock != nil { |
| 185 | in, out := &in.IPBlock, &out.IPBlock |
| 186 | *out = new(IPBlock) |
| 187 | (*in).DeepCopyInto(*out) |
| 188 | } |
| 189 | return |
| 190 | } |
| 191 | |
| 192 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer. |
| 193 | func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer { |
| 194 | if in == nil { |
| 195 | return nil |
| 196 | } |
| 197 | out := new(NetworkPolicyPeer) |
| 198 | in.DeepCopyInto(out) |
| 199 | return out |
| 200 | } |
| 201 | |
| 202 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 203 | func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) { |
| 204 | *out = *in |
| 205 | if in.Protocol != nil { |
| 206 | in, out := &in.Protocol, &out.Protocol |
| 207 | *out = new(corev1.Protocol) |
| 208 | **out = **in |
| 209 | } |
| 210 | if in.Port != nil { |
| 211 | in, out := &in.Port, &out.Port |
| 212 | *out = new(intstr.IntOrString) |
| 213 | **out = **in |
| 214 | } |
| 215 | return |
| 216 | } |
| 217 | |
| 218 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort. |
| 219 | func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort { |
| 220 | if in == nil { |
| 221 | return nil |
| 222 | } |
| 223 | out := new(NetworkPolicyPort) |
| 224 | in.DeepCopyInto(out) |
| 225 | return out |
| 226 | } |
| 227 | |
| 228 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. |
| 229 | func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) { |
| 230 | *out = *in |
| 231 | in.PodSelector.DeepCopyInto(&out.PodSelector) |
| 232 | if in.Ingress != nil { |
| 233 | in, out := &in.Ingress, &out.Ingress |
| 234 | *out = make([]NetworkPolicyIngressRule, len(*in)) |
| 235 | for i := range *in { |
| 236 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 237 | } |
| 238 | } |
| 239 | if in.Egress != nil { |
| 240 | in, out := &in.Egress, &out.Egress |
| 241 | *out = make([]NetworkPolicyEgressRule, len(*in)) |
| 242 | for i := range *in { |
| 243 | (*in)[i].DeepCopyInto(&(*out)[i]) |
| 244 | } |
| 245 | } |
| 246 | if in.PolicyTypes != nil { |
| 247 | in, out := &in.PolicyTypes, &out.PolicyTypes |
| 248 | *out = make([]PolicyType, len(*in)) |
| 249 | copy(*out, *in) |
| 250 | } |
| 251 | return |
| 252 | } |
| 253 | |
| 254 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec. |
| 255 | func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec { |
| 256 | if in == nil { |
| 257 | return nil |
| 258 | } |
| 259 | out := new(NetworkPolicySpec) |
| 260 | in.DeepCopyInto(out) |
| 261 | return out |
| 262 | } |