zz_generated.deepcopy.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package api
  16. import (
  17. runtime "k8s.io/apimachinery/pkg/runtime"
  18. )
  19. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  20. func (in *AuthInfo) DeepCopyInto(out *AuthInfo) {
  21. *out = *in
  22. if in.ClientCertificateData != nil {
  23. in, out := &in.ClientCertificateData, &out.ClientCertificateData
  24. *out = make([]byte, len(*in))
  25. copy(*out, *in)
  26. }
  27. if in.ClientKeyData != nil {
  28. in, out := &in.ClientKeyData, &out.ClientKeyData
  29. *out = make([]byte, len(*in))
  30. copy(*out, *in)
  31. }
  32. if in.ImpersonateGroups != nil {
  33. in, out := &in.ImpersonateGroups, &out.ImpersonateGroups
  34. *out = make([]string, len(*in))
  35. copy(*out, *in)
  36. }
  37. if in.ImpersonateUserExtra != nil {
  38. in, out := &in.ImpersonateUserExtra, &out.ImpersonateUserExtra
  39. *out = make(map[string][]string, len(*in))
  40. for key, val := range *in {
  41. var outVal []string
  42. if val == nil {
  43. (*out)[key] = nil
  44. } else {
  45. in, out := &val, &outVal
  46. *out = make([]string, len(*in))
  47. copy(*out, *in)
  48. }
  49. (*out)[key] = outVal
  50. }
  51. }
  52. if in.AuthProvider != nil {
  53. in, out := &in.AuthProvider, &out.AuthProvider
  54. *out = new(AuthProviderConfig)
  55. (*in).DeepCopyInto(*out)
  56. }
  57. if in.Exec != nil {
  58. in, out := &in.Exec, &out.Exec
  59. *out = new(ExecConfig)
  60. (*in).DeepCopyInto(*out)
  61. }
  62. if in.Extensions != nil {
  63. in, out := &in.Extensions, &out.Extensions
  64. *out = make(map[string]runtime.Object, len(*in))
  65. for key, val := range *in {
  66. if val == nil {
  67. (*out)[key] = nil
  68. } else {
  69. (*out)[key] = val.DeepCopyObject()
  70. }
  71. }
  72. }
  73. return
  74. }
  75. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
  76. func (in *AuthInfo) DeepCopy() *AuthInfo {
  77. if in == nil {
  78. return nil
  79. }
  80. out := new(AuthInfo)
  81. in.DeepCopyInto(out)
  82. return out
  83. }
  84. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  85. func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) {
  86. *out = *in
  87. if in.Config != nil {
  88. in, out := &in.Config, &out.Config
  89. *out = make(map[string]string, len(*in))
  90. for key, val := range *in {
  91. (*out)[key] = val
  92. }
  93. }
  94. return
  95. }
  96. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig.
  97. func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig {
  98. if in == nil {
  99. return nil
  100. }
  101. out := new(AuthProviderConfig)
  102. in.DeepCopyInto(out)
  103. return out
  104. }
  105. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  106. func (in *Cluster) DeepCopyInto(out *Cluster) {
  107. *out = *in
  108. if in.CertificateAuthorityData != nil {
  109. in, out := &in.CertificateAuthorityData, &out.CertificateAuthorityData
  110. *out = make([]byte, len(*in))
  111. copy(*out, *in)
  112. }
  113. if in.Extensions != nil {
  114. in, out := &in.Extensions, &out.Extensions
  115. *out = make(map[string]runtime.Object, len(*in))
  116. for key, val := range *in {
  117. if val == nil {
  118. (*out)[key] = nil
  119. } else {
  120. (*out)[key] = val.DeepCopyObject()
  121. }
  122. }
  123. }
  124. return
  125. }
  126. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
  127. func (in *Cluster) DeepCopy() *Cluster {
  128. if in == nil {
  129. return nil
  130. }
  131. out := new(Cluster)
  132. in.DeepCopyInto(out)
  133. return out
  134. }
  135. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  136. func (in *Config) DeepCopyInto(out *Config) {
  137. *out = *in
  138. in.Preferences.DeepCopyInto(&out.Preferences)
  139. if in.Clusters != nil {
  140. in, out := &in.Clusters, &out.Clusters
  141. *out = make(map[string]*Cluster, len(*in))
  142. for key, val := range *in {
  143. var outVal *Cluster
  144. if val == nil {
  145. (*out)[key] = nil
  146. } else {
  147. in, out := &val, &outVal
  148. *out = new(Cluster)
  149. (*in).DeepCopyInto(*out)
  150. }
  151. (*out)[key] = outVal
  152. }
  153. }
  154. if in.AuthInfos != nil {
  155. in, out := &in.AuthInfos, &out.AuthInfos
  156. *out = make(map[string]*AuthInfo, len(*in))
  157. for key, val := range *in {
  158. var outVal *AuthInfo
  159. if val == nil {
  160. (*out)[key] = nil
  161. } else {
  162. in, out := &val, &outVal
  163. *out = new(AuthInfo)
  164. (*in).DeepCopyInto(*out)
  165. }
  166. (*out)[key] = outVal
  167. }
  168. }
  169. if in.Contexts != nil {
  170. in, out := &in.Contexts, &out.Contexts
  171. *out = make(map[string]*Context, len(*in))
  172. for key, val := range *in {
  173. var outVal *Context
  174. if val == nil {
  175. (*out)[key] = nil
  176. } else {
  177. in, out := &val, &outVal
  178. *out = new(Context)
  179. (*in).DeepCopyInto(*out)
  180. }
  181. (*out)[key] = outVal
  182. }
  183. }
  184. if in.Extensions != nil {
  185. in, out := &in.Extensions, &out.Extensions
  186. *out = make(map[string]runtime.Object, len(*in))
  187. for key, val := range *in {
  188. if val == nil {
  189. (*out)[key] = nil
  190. } else {
  191. (*out)[key] = val.DeepCopyObject()
  192. }
  193. }
  194. }
  195. return
  196. }
  197. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
  198. func (in *Config) DeepCopy() *Config {
  199. if in == nil {
  200. return nil
  201. }
  202. out := new(Config)
  203. in.DeepCopyInto(out)
  204. return out
  205. }
  206. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  207. func (in *Config) DeepCopyObject() runtime.Object {
  208. if c := in.DeepCopy(); c != nil {
  209. return c
  210. }
  211. return nil
  212. }
  213. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  214. func (in *Context) DeepCopyInto(out *Context) {
  215. *out = *in
  216. if in.Extensions != nil {
  217. in, out := &in.Extensions, &out.Extensions
  218. *out = make(map[string]runtime.Object, len(*in))
  219. for key, val := range *in {
  220. if val == nil {
  221. (*out)[key] = nil
  222. } else {
  223. (*out)[key] = val.DeepCopyObject()
  224. }
  225. }
  226. }
  227. return
  228. }
  229. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
  230. func (in *Context) DeepCopy() *Context {
  231. if in == nil {
  232. return nil
  233. }
  234. out := new(Context)
  235. in.DeepCopyInto(out)
  236. return out
  237. }
  238. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  239. func (in *ExecConfig) DeepCopyInto(out *ExecConfig) {
  240. *out = *in
  241. if in.Args != nil {
  242. in, out := &in.Args, &out.Args
  243. *out = make([]string, len(*in))
  244. copy(*out, *in)
  245. }
  246. if in.Env != nil {
  247. in, out := &in.Env, &out.Env
  248. *out = make([]ExecEnvVar, len(*in))
  249. copy(*out, *in)
  250. }
  251. return
  252. }
  253. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecConfig.
  254. func (in *ExecConfig) DeepCopy() *ExecConfig {
  255. if in == nil {
  256. return nil
  257. }
  258. out := new(ExecConfig)
  259. in.DeepCopyInto(out)
  260. return out
  261. }
  262. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  263. func (in *ExecEnvVar) DeepCopyInto(out *ExecEnvVar) {
  264. *out = *in
  265. return
  266. }
  267. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecEnvVar.
  268. func (in *ExecEnvVar) DeepCopy() *ExecEnvVar {
  269. if in == nil {
  270. return nil
  271. }
  272. out := new(ExecEnvVar)
  273. in.DeepCopyInto(out)
  274. return out
  275. }
  276. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  277. func (in *Preferences) DeepCopyInto(out *Preferences) {
  278. *out = *in
  279. if in.Extensions != nil {
  280. in, out := &in.Extensions, &out.Extensions
  281. *out = make(map[string]runtime.Object, len(*in))
  282. for key, val := range *in {
  283. if val == nil {
  284. (*out)[key] = nil
  285. } else {
  286. (*out)[key] = val.DeepCopyObject()
  287. }
  288. }
  289. }
  290. return
  291. }
  292. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences.
  293. func (in *Preferences) DeepCopy() *Preferences {
  294. if in == nil {
  295. return nil
  296. }
  297. out := new(Preferences)
  298. in.DeepCopyInto(out)
  299. return out
  300. }