1
2
3
4
5
6 package dockerpre012
7
8 import (
9 runtime "k8s.io/apimachinery/pkg/runtime"
10 )
11
12
13 func (in *Config) DeepCopyInto(out *Config) {
14 *out = *in
15 if in.PortSpecs != nil {
16 in, out := &in.PortSpecs, &out.PortSpecs
17 *out = make([]string, len(*in))
18 copy(*out, *in)
19 }
20 if in.ExposedPorts != nil {
21 in, out := &in.ExposedPorts, &out.ExposedPorts
22 *out = make(map[Port]struct{}, len(*in))
23 for key, val := range *in {
24 (*out)[key] = val
25 }
26 }
27 if in.Env != nil {
28 in, out := &in.Env, &out.Env
29 *out = make([]string, len(*in))
30 copy(*out, *in)
31 }
32 if in.Cmd != nil {
33 in, out := &in.Cmd, &out.Cmd
34 *out = make([]string, len(*in))
35 copy(*out, *in)
36 }
37 if in.DNS != nil {
38 in, out := &in.DNS, &out.DNS
39 *out = make([]string, len(*in))
40 copy(*out, *in)
41 }
42 if in.Volumes != nil {
43 in, out := &in.Volumes, &out.Volumes
44 *out = make(map[string]struct{}, len(*in))
45 for key, val := range *in {
46 (*out)[key] = val
47 }
48 }
49 if in.Entrypoint != nil {
50 in, out := &in.Entrypoint, &out.Entrypoint
51 *out = make([]string, len(*in))
52 copy(*out, *in)
53 }
54 if in.SecurityOpts != nil {
55 in, out := &in.SecurityOpts, &out.SecurityOpts
56 *out = make([]string, len(*in))
57 copy(*out, *in)
58 }
59 if in.OnBuild != nil {
60 in, out := &in.OnBuild, &out.OnBuild
61 *out = make([]string, len(*in))
62 copy(*out, *in)
63 }
64 if in.Mounts != nil {
65 in, out := &in.Mounts, &out.Mounts
66 *out = make([]Mount, len(*in))
67 copy(*out, *in)
68 }
69 if in.Labels != nil {
70 in, out := &in.Labels, &out.Labels
71 *out = make(map[string]string, len(*in))
72 for key, val := range *in {
73 (*out)[key] = val
74 }
75 }
76 return
77 }
78
79
80 func (in *Config) DeepCopy() *Config {
81 if in == nil {
82 return nil
83 }
84 out := new(Config)
85 in.DeepCopyInto(out)
86 return out
87 }
88
89
90 func (in *DockerConfig) DeepCopyInto(out *DockerConfig) {
91 *out = *in
92 if in.PortSpecs != nil {
93 in, out := &in.PortSpecs, &out.PortSpecs
94 *out = make([]string, len(*in))
95 copy(*out, *in)
96 }
97 if in.ExposedPorts != nil {
98 in, out := &in.ExposedPorts, &out.ExposedPorts
99 *out = make(map[string]struct{}, len(*in))
100 for key, val := range *in {
101 (*out)[key] = val
102 }
103 }
104 if in.Env != nil {
105 in, out := &in.Env, &out.Env
106 *out = make([]string, len(*in))
107 copy(*out, *in)
108 }
109 if in.Cmd != nil {
110 in, out := &in.Cmd, &out.Cmd
111 *out = make([]string, len(*in))
112 copy(*out, *in)
113 }
114 if in.DNS != nil {
115 in, out := &in.DNS, &out.DNS
116 *out = make([]string, len(*in))
117 copy(*out, *in)
118 }
119 if in.Volumes != nil {
120 in, out := &in.Volumes, &out.Volumes
121 *out = make(map[string]struct{}, len(*in))
122 for key, val := range *in {
123 (*out)[key] = val
124 }
125 }
126 if in.Entrypoint != nil {
127 in, out := &in.Entrypoint, &out.Entrypoint
128 *out = make([]string, len(*in))
129 copy(*out, *in)
130 }
131 if in.SecurityOpts != nil {
132 in, out := &in.SecurityOpts, &out.SecurityOpts
133 *out = make([]string, len(*in))
134 copy(*out, *in)
135 }
136 if in.OnBuild != nil {
137 in, out := &in.OnBuild, &out.OnBuild
138 *out = make([]string, len(*in))
139 copy(*out, *in)
140 }
141 if in.Labels != nil {
142 in, out := &in.Labels, &out.Labels
143 *out = make(map[string]string, len(*in))
144 for key, val := range *in {
145 (*out)[key] = val
146 }
147 }
148 return
149 }
150
151
152 func (in *DockerConfig) DeepCopy() *DockerConfig {
153 if in == nil {
154 return nil
155 }
156 out := new(DockerConfig)
157 in.DeepCopyInto(out)
158 return out
159 }
160
161
162 func (in *DockerImage) DeepCopyInto(out *DockerImage) {
163 *out = *in
164 out.TypeMeta = in.TypeMeta
165 in.Created.DeepCopyInto(&out.Created)
166 in.ContainerConfig.DeepCopyInto(&out.ContainerConfig)
167 if in.Config != nil {
168 in, out := &in.Config, &out.Config
169 *out = new(DockerConfig)
170 (*in).DeepCopyInto(*out)
171 }
172 return
173 }
174
175
176 func (in *DockerImage) DeepCopy() *DockerImage {
177 if in == nil {
178 return nil
179 }
180 out := new(DockerImage)
181 in.DeepCopyInto(out)
182 return out
183 }
184
185
186 func (in *DockerImage) DeepCopyObject() runtime.Object {
187 if c := in.DeepCopy(); c != nil {
188 return c
189 }
190 return nil
191 }
192
193
194 func (in *ImagePre012) DeepCopy() *ImagePre012 {
195 if in == nil {
196 return nil
197 }
198 out := new(ImagePre012)
199 in.DeepCopyInto(out)
200 return out
201 }
202
203
204 func (in *Mount) DeepCopyInto(out *Mount) {
205 *out = *in
206 return
207 }
208
209
210 func (in *Mount) DeepCopy() *Mount {
211 if in == nil {
212 return nil
213 }
214 out := new(Mount)
215 in.DeepCopyInto(out)
216 return out
217 }
218
View as plain text