zz_generated.deepcopy.go 8.0 KB

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