zz_generated.deepcopy.go 9.2 KB

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