zz_generated.deepcopy.go 9.3 KB

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