zz_generated.deepcopy.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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 api
  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(map[string]runtime.Object, len(*in))
  66. for key, val := range *in {
  67. if val == nil {
  68. (*out)[key] = nil
  69. } else {
  70. (*out)[key] = val.DeepCopyObject()
  71. }
  72. }
  73. }
  74. return
  75. }
  76. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
  77. func (in *AuthInfo) DeepCopy() *AuthInfo {
  78. if in == nil {
  79. return nil
  80. }
  81. out := new(AuthInfo)
  82. in.DeepCopyInto(out)
  83. return out
  84. }
  85. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  86. func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) {
  87. *out = *in
  88. if in.Config != nil {
  89. in, out := &in.Config, &out.Config
  90. *out = make(map[string]string, len(*in))
  91. for key, val := range *in {
  92. (*out)[key] = val
  93. }
  94. }
  95. return
  96. }
  97. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig.
  98. func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig {
  99. if in == nil {
  100. return nil
  101. }
  102. out := new(AuthProviderConfig)
  103. in.DeepCopyInto(out)
  104. return out
  105. }
  106. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  107. func (in *Cluster) DeepCopyInto(out *Cluster) {
  108. *out = *in
  109. if in.CertificateAuthorityData != nil {
  110. in, out := &in.CertificateAuthorityData, &out.CertificateAuthorityData
  111. *out = make([]byte, len(*in))
  112. copy(*out, *in)
  113. }
  114. if in.Extensions != nil {
  115. in, out := &in.Extensions, &out.Extensions
  116. *out = make(map[string]runtime.Object, len(*in))
  117. for key, val := range *in {
  118. if val == nil {
  119. (*out)[key] = nil
  120. } else {
  121. (*out)[key] = val.DeepCopyObject()
  122. }
  123. }
  124. }
  125. return
  126. }
  127. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
  128. func (in *Cluster) DeepCopy() *Cluster {
  129. if in == nil {
  130. return nil
  131. }
  132. out := new(Cluster)
  133. in.DeepCopyInto(out)
  134. return out
  135. }
  136. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  137. func (in *Config) DeepCopyInto(out *Config) {
  138. *out = *in
  139. in.Preferences.DeepCopyInto(&out.Preferences)
  140. if in.Clusters != nil {
  141. in, out := &in.Clusters, &out.Clusters
  142. *out = make(map[string]*Cluster, len(*in))
  143. for key, val := range *in {
  144. var outVal *Cluster
  145. if val == nil {
  146. (*out)[key] = nil
  147. } else {
  148. in, out := &val, &outVal
  149. *out = new(Cluster)
  150. (*in).DeepCopyInto(*out)
  151. }
  152. (*out)[key] = outVal
  153. }
  154. }
  155. if in.AuthInfos != nil {
  156. in, out := &in.AuthInfos, &out.AuthInfos
  157. *out = make(map[string]*AuthInfo, len(*in))
  158. for key, val := range *in {
  159. var outVal *AuthInfo
  160. if val == nil {
  161. (*out)[key] = nil
  162. } else {
  163. in, out := &val, &outVal
  164. *out = new(AuthInfo)
  165. (*in).DeepCopyInto(*out)
  166. }
  167. (*out)[key] = outVal
  168. }
  169. }
  170. if in.Contexts != nil {
  171. in, out := &in.Contexts, &out.Contexts
  172. *out = make(map[string]*Context, len(*in))
  173. for key, val := range *in {
  174. var outVal *Context
  175. if val == nil {
  176. (*out)[key] = nil
  177. } else {
  178. in, out := &val, &outVal
  179. *out = new(Context)
  180. (*in).DeepCopyInto(*out)
  181. }
  182. (*out)[key] = outVal
  183. }
  184. }
  185. if in.Extensions != nil {
  186. in, out := &in.Extensions, &out.Extensions
  187. *out = make(map[string]runtime.Object, len(*in))
  188. for key, val := range *in {
  189. if val == nil {
  190. (*out)[key] = nil
  191. } else {
  192. (*out)[key] = val.DeepCopyObject()
  193. }
  194. }
  195. }
  196. return
  197. }
  198. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
  199. func (in *Config) DeepCopy() *Config {
  200. if in == nil {
  201. return nil
  202. }
  203. out := new(Config)
  204. in.DeepCopyInto(out)
  205. return out
  206. }
  207. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  208. func (in *Config) DeepCopyObject() runtime.Object {
  209. if c := in.DeepCopy(); c != nil {
  210. return c
  211. }
  212. return nil
  213. }
  214. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  215. func (in *Context) DeepCopyInto(out *Context) {
  216. *out = *in
  217. if in.Extensions != nil {
  218. in, out := &in.Extensions, &out.Extensions
  219. *out = make(map[string]runtime.Object, len(*in))
  220. for key, val := range *in {
  221. if val == nil {
  222. (*out)[key] = nil
  223. } else {
  224. (*out)[key] = val.DeepCopyObject()
  225. }
  226. }
  227. }
  228. return
  229. }
  230. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
  231. func (in *Context) DeepCopy() *Context {
  232. if in == nil {
  233. return nil
  234. }
  235. out := new(Context)
  236. in.DeepCopyInto(out)
  237. return out
  238. }
  239. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  240. func (in *ExecConfig) DeepCopyInto(out *ExecConfig) {
  241. *out = *in
  242. if in.Args != nil {
  243. in, out := &in.Args, &out.Args
  244. *out = make([]string, len(*in))
  245. copy(*out, *in)
  246. }
  247. if in.Env != nil {
  248. in, out := &in.Env, &out.Env
  249. *out = make([]ExecEnvVar, len(*in))
  250. copy(*out, *in)
  251. }
  252. if in.Config != nil {
  253. out.Config = in.Config.DeepCopyObject()
  254. }
  255. return
  256. }
  257. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecConfig.
  258. func (in *ExecConfig) DeepCopy() *ExecConfig {
  259. if in == nil {
  260. return nil
  261. }
  262. out := new(ExecConfig)
  263. in.DeepCopyInto(out)
  264. return out
  265. }
  266. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  267. func (in *ExecEnvVar) DeepCopyInto(out *ExecEnvVar) {
  268. *out = *in
  269. return
  270. }
  271. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecEnvVar.
  272. func (in *ExecEnvVar) DeepCopy() *ExecEnvVar {
  273. if in == nil {
  274. return nil
  275. }
  276. out := new(ExecEnvVar)
  277. in.DeepCopyInto(out)
  278. return out
  279. }
  280. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  281. func (in *Preferences) DeepCopyInto(out *Preferences) {
  282. *out = *in
  283. if in.Extensions != nil {
  284. in, out := &in.Extensions, &out.Extensions
  285. *out = make(map[string]runtime.Object, len(*in))
  286. for key, val := range *in {
  287. if val == nil {
  288. (*out)[key] = nil
  289. } else {
  290. (*out)[key] = val.DeepCopyObject()
  291. }
  292. }
  293. }
  294. return
  295. }
  296. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences.
  297. func (in *Preferences) DeepCopy() *Preferences {
  298. if in == nil {
  299. return nil
  300. }
  301. out := new(Preferences)
  302. in.DeepCopyInto(out)
  303. return out
  304. }