forked from YutaroHayakawa/go-ra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_generated_deepcopy.go
121 lines (112 loc) · 3.08 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
// Code generated by deepcopy-gen Config Status InterfaceConfig InterfaceStatus PrefixConfig RouteConfig RDNSSConfig DNSSLConfig; DO NOT EDIT.
package ra
// deepCopy generates a deep copy of *Config
func (o *Config) deepCopy() *Config {
var cp Config = *o
if o.Interfaces != nil {
cp.Interfaces = make([]*InterfaceConfig, len(o.Interfaces))
copy(cp.Interfaces, o.Interfaces)
for i2 := range o.Interfaces {
if o.Interfaces[i2] != nil {
cp.Interfaces[i2] = o.Interfaces[i2].deepCopy()
}
}
}
return &cp
}
// deepCopy generates a deep copy of *Status
func (o *Status) deepCopy() *Status {
var cp Status = *o
if o.Interfaces != nil {
cp.Interfaces = make([]*InterfaceStatus, len(o.Interfaces))
copy(cp.Interfaces, o.Interfaces)
for i2 := range o.Interfaces {
if o.Interfaces[i2] != nil {
cp.Interfaces[i2] = o.Interfaces[i2].deepCopy()
}
}
}
return &cp
}
// deepCopy generates a deep copy of *InterfaceConfig
func (o *InterfaceConfig) deepCopy() *InterfaceConfig {
var cp InterfaceConfig = *o
if o.Prefixes != nil {
cp.Prefixes = make([]*PrefixConfig, len(o.Prefixes))
copy(cp.Prefixes, o.Prefixes)
for i2 := range o.Prefixes {
if o.Prefixes[i2] != nil {
cp.Prefixes[i2] = o.Prefixes[i2].deepCopy()
}
}
}
if o.Routes != nil {
cp.Routes = make([]*RouteConfig, len(o.Routes))
copy(cp.Routes, o.Routes)
for i2 := range o.Routes {
if o.Routes[i2] != nil {
cp.Routes[i2] = o.Routes[i2].deepCopy()
}
}
}
if o.RDNSSes != nil {
cp.RDNSSes = make([]*RDNSSConfig, len(o.RDNSSes))
copy(cp.RDNSSes, o.RDNSSes)
for i2 := range o.RDNSSes {
if o.RDNSSes[i2] != nil {
cp.RDNSSes[i2] = o.RDNSSes[i2].deepCopy()
}
}
}
if o.DNSSLs != nil {
cp.DNSSLs = make([]*DNSSLConfig, len(o.DNSSLs))
copy(cp.DNSSLs, o.DNSSLs)
for i2 := range o.DNSSLs {
if o.DNSSLs[i2] != nil {
cp.DNSSLs[i2] = o.DNSSLs[i2].deepCopy()
}
}
}
return &cp
}
// deepCopy generates a deep copy of *InterfaceStatus
func (o *InterfaceStatus) deepCopy() *InterfaceStatus {
var cp InterfaceStatus = *o
return &cp
}
// deepCopy generates a deep copy of *PrefixConfig
func (o *PrefixConfig) deepCopy() *PrefixConfig {
var cp PrefixConfig = *o
if o.ValidLifetimeSeconds != nil {
cp.ValidLifetimeSeconds = new(int)
*cp.ValidLifetimeSeconds = *o.ValidLifetimeSeconds
}
if o.PreferredLifetimeSeconds != nil {
cp.PreferredLifetimeSeconds = new(int)
*cp.PreferredLifetimeSeconds = *o.PreferredLifetimeSeconds
}
return &cp
}
// deepCopy generates a deep copy of *RouteConfig
func (o *RouteConfig) deepCopy() *RouteConfig {
var cp RouteConfig = *o
return &cp
}
// deepCopy generates a deep copy of *RDNSSConfig
func (o *RDNSSConfig) deepCopy() *RDNSSConfig {
var cp RDNSSConfig = *o
if o.Addresses != nil {
cp.Addresses = make([]string, len(o.Addresses))
copy(cp.Addresses, o.Addresses)
}
return &cp
}
// deepCopy generates a deep copy of *DNSSLConfig
func (o *DNSSLConfig) deepCopy() *DNSSLConfig {
var cp DNSSLConfig = *o
if o.DomainNames != nil {
cp.DomainNames = make([]string, len(o.DomainNames))
copy(cp.DomainNames, o.DomainNames)
}
return &cp
}