/
zz_generated.deepcopy.go
138 lines (127 loc) · 3.38 KB
/
zz_generated.deepcopy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
58
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium
// Code generated by deepcopy-gen. DO NOT EDIT.
package types
import (
net "net"
cidr "github.com/cilium/cilium/pkg/cidr"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Address) DeepCopyInto(out *Address) {
*out = *in
if in.IP != nil {
in, out := &in.IP, &out.IP
*out = make(net.IP, len(*in))
copy(*out, *in)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Address.
func (in *Address) DeepCopy() *Address {
if in == nil {
return nil
}
out := new(Address)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Node) DeepCopyInto(out *Node) {
*out = *in
if in.IPAddresses != nil {
in, out := &in.IPAddresses, &out.IPAddresses
*out = make([]Address, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.IPv4AllocCIDR != nil {
in, out := &in.IPv4AllocCIDR, &out.IPv4AllocCIDR
*out = (*in).DeepCopy()
}
if in.IPv4SecondaryAllocCIDRs != nil {
in, out := &in.IPv4SecondaryAllocCIDRs, &out.IPv4SecondaryAllocCIDRs
*out = make([]*cidr.CIDR, len(*in))
for i := range *in {
if (*in)[i] != nil {
in, out := &(*in)[i], &(*out)[i]
*out = (*in).DeepCopy()
}
}
}
if in.IPv6AllocCIDR != nil {
in, out := &in.IPv6AllocCIDR, &out.IPv6AllocCIDR
*out = (*in).DeepCopy()
}
if in.IPv6SecondaryAllocCIDRs != nil {
in, out := &in.IPv6SecondaryAllocCIDRs, &out.IPv6SecondaryAllocCIDRs
*out = make([]*cidr.CIDR, len(*in))
for i := range *in {
if (*in)[i] != nil {
in, out := &(*in)[i], &(*out)[i]
*out = (*in).DeepCopy()
}
}
}
if in.IPv4HealthIP != nil {
in, out := &in.IPv4HealthIP, &out.IPv4HealthIP
*out = make(net.IP, len(*in))
copy(*out, *in)
}
if in.IPv6HealthIP != nil {
in, out := &in.IPv6HealthIP, &out.IPv6HealthIP
*out = make(net.IP, len(*in))
copy(*out, *in)
}
if in.IPv4IngressIP != nil {
in, out := &in.IPv4IngressIP, &out.IPv4IngressIP
*out = make(net.IP, len(*in))
copy(*out, *in)
}
if in.IPv6IngressIP != nil {
in, out := &in.IPv6IngressIP, &out.IPv6IngressIP
*out = make(net.IP, len(*in))
copy(*out, *in)
}
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (in *Node) DeepCopy() *Node {
if in == nil {
return nil
}
out := new(Node)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RegisterNode) DeepCopyInto(out *RegisterNode) {
*out = *in
in.Node.DeepCopyInto(&out.Node)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterNode.
func (in *RegisterNode) DeepCopy() *RegisterNode {
if in == nil {
return nil
}
out := new(RegisterNode)
in.DeepCopyInto(out)
return out
}