zz_generated.deepcopy.go 6.9 KB
Newer Older
1 2 3
// +build !ignore_autogenerated

/*
4
Copyright 2020 The KubeSphere Authors.
5 6 7 8 9 10 11 12 13 14 15 16 17 18

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.
*/

19
// Code generated by controller-gen. DO NOT EDIT.
20 21 22 23

package v1alpha1

import (
24
	"k8s.io/api/networking/v1"
25 26 27
	runtime "k8s.io/apimachinery/pkg/runtime"
)

M
magicsong 已提交
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NamespaceNetworkPolicy) DeepCopyInto(out *NamespaceNetworkPolicy) {
	*out = *in
	out.TypeMeta = in.TypeMeta
	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
	in.Spec.DeepCopyInto(&out.Spec)
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceNetworkPolicy.
func (in *NamespaceNetworkPolicy) DeepCopy() *NamespaceNetworkPolicy {
	if in == nil {
		return nil
	}
	out := new(NamespaceNetworkPolicy)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *NamespaceNetworkPolicy) 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 *NamespaceNetworkPolicyList) DeepCopyInto(out *NamespaceNetworkPolicyList) {
	*out = *in
	out.TypeMeta = in.TypeMeta
Z
zryfish 已提交
58
	in.ListMeta.DeepCopyInto(&out.ListMeta)
M
magicsong 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
	if in.Items != nil {
		in, out := &in.Items, &out.Items
		*out = make([]NamespaceNetworkPolicy, len(*in))
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceNetworkPolicyList.
func (in *NamespaceNetworkPolicyList) DeepCopy() *NamespaceNetworkPolicyList {
	if in == nil {
		return nil
	}
	out := new(NamespaceNetworkPolicyList)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *NamespaceNetworkPolicyList) 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 *NamespaceNetworkPolicySpec) DeepCopyInto(out *NamespaceNetworkPolicySpec) {
	*out = *in
	if in.Ingress != nil {
		in, out := &in.Ingress, &out.Ingress
D
Duan Jiong 已提交
91
		*out = make([]NetworkPolicyIngressRule, len(*in))
M
magicsong 已提交
92 93 94 95 96 97
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
	if in.Egress != nil {
		in, out := &in.Egress, &out.Egress
D
Duan Jiong 已提交
98
		*out = make([]NetworkPolicyEgressRule, len(*in))
M
magicsong 已提交
99 100 101 102
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
D
Duan Jiong 已提交
103 104 105
	if in.PolicyTypes != nil {
		in, out := &in.PolicyTypes, &out.PolicyTypes
		*out = make([]v1.PolicyType, len(*in))
M
magicsong 已提交
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
		copy(*out, *in)
	}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceNetworkPolicySpec.
func (in *NamespaceNetworkPolicySpec) DeepCopy() *NamespaceNetworkPolicySpec {
	if in == nil {
		return nil
	}
	out := new(NamespaceNetworkPolicySpec)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
D
Duan Jiong 已提交
121
func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector) {
M
magicsong 已提交
122 123 124
	*out = *in
}

D
Duan Jiong 已提交
125 126
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSelector.
func (in *NamespaceSelector) DeepCopy() *NamespaceSelector {
M
magicsong 已提交
127 128 129
	if in == nil {
		return nil
	}
D
Duan Jiong 已提交
130
	out := new(NamespaceSelector)
M
magicsong 已提交
131 132 133 134 135
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
D
Duan Jiong 已提交
136
func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
137 138 139
	*out = *in
	if in.Ports != nil {
		in, out := &in.Ports, &out.Ports
D
Duan Jiong 已提交
140
		*out = make([]v1.NetworkPolicyPort, len(*in))
141 142 143 144 145 146
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
	if in.To != nil {
		in, out := &in.To, &out.To
D
Duan Jiong 已提交
147
		*out = make([]NetworkPolicyPeer, len(*in))
148 149 150 151 152 153
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
}

D
Duan Jiong 已提交
154 155
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
156 157 158
	if in == nil {
		return nil
	}
D
Duan Jiong 已提交
159
	out := new(NetworkPolicyEgressRule)
160 161 162 163 164
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
D
Duan Jiong 已提交
165
func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
166 167 168
	*out = *in
	if in.Ports != nil {
		in, out := &in.Ports, &out.Ports
D
Duan Jiong 已提交
169
		*out = make([]v1.NetworkPolicyPort, len(*in))
170 171 172 173 174 175
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
	if in.From != nil {
		in, out := &in.From, &out.From
D
Duan Jiong 已提交
176
		*out = make([]NetworkPolicyPeer, len(*in))
177 178 179 180 181 182
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
}

D
Duan Jiong 已提交
183 184
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
185 186 187
	if in == nil {
		return nil
	}
D
Duan Jiong 已提交
188
	out := new(NetworkPolicyIngressRule)
189 190 191 192 193
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
D
Duan Jiong 已提交
194
func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
195
	*out = *in
D
Duan Jiong 已提交
196 197 198 199
	if in.NamespaceSelector != nil {
		in, out := &in.NamespaceSelector, &out.NamespaceSelector
		*out = new(NamespaceSelector)
		**out = **in
200
	}
D
Duan Jiong 已提交
201 202 203
	if in.IPBlock != nil {
		in, out := &in.IPBlock, &out.IPBlock
		*out = new(v1.IPBlock)
204 205
		(*in).DeepCopyInto(*out)
	}
D
Duan Jiong 已提交
206 207 208 209
	if in.ServiceSelector != nil {
		in, out := &in.ServiceSelector, &out.ServiceSelector
		*out = new(ServiceSelector)
		**out = **in
210 211 212
	}
}

D
Duan Jiong 已提交
213 214
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
215 216 217
	if in == nil {
		return nil
	}
D
Duan Jiong 已提交
218
	out := new(NetworkPolicyPeer)
219 220 221 222 223
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
D
Duan Jiong 已提交
224
func (in *ServiceSelector) DeepCopyInto(out *ServiceSelector) {
225 226 227
	*out = *in
}

D
Duan Jiong 已提交
228 229
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSelector.
func (in *ServiceSelector) DeepCopy() *ServiceSelector {
230 231 232
	if in == nil {
		return nil
	}
D
Duan Jiong 已提交
233
	out := new(ServiceSelector)
234 235 236
	in.DeepCopyInto(out)
	return out
}