zz_generated.deepcopy.go 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright 2017 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. // This file was autogenerated by deepcopy-gen. Do not edit it manually!
  15. package authorization
  16. import (
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. conversion "k8s.io/apimachinery/pkg/conversion"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. reflect "reflect"
  21. )
  22. func init() {
  23. SchemeBuilder.Register(RegisterDeepCopies)
  24. }
  25. // RegisterDeepCopies adds deep-copy functions to the given scheme. Public
  26. // to allow building arbitrary schemes.
  27. func RegisterDeepCopies(scheme *runtime.Scheme) error {
  28. return scheme.AddGeneratedDeepCopyFuncs(
  29. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_LocalSubjectAccessReview, InType: reflect.TypeOf(&LocalSubjectAccessReview{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_NonResourceAttributes, InType: reflect.TypeOf(&NonResourceAttributes{})},
  31. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_ResourceAttributes, InType: reflect.TypeOf(&ResourceAttributes{})},
  32. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReview, InType: reflect.TypeOf(&SelfSubjectAccessReview{})},
  33. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReviewSpec, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})},
  34. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReview, InType: reflect.TypeOf(&SubjectAccessReview{})},
  35. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewSpec, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})},
  36. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewStatus, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})},
  37. )
  38. }
  39. func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error {
  40. {
  41. in := in.(*LocalSubjectAccessReview)
  42. out := out.(*LocalSubjectAccessReview)
  43. *out = *in
  44. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  45. return err
  46. } else {
  47. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  48. }
  49. if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
  50. return err
  51. }
  52. return nil
  53. }
  54. }
  55. func DeepCopy_authorization_NonResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error {
  56. {
  57. in := in.(*NonResourceAttributes)
  58. out := out.(*NonResourceAttributes)
  59. *out = *in
  60. return nil
  61. }
  62. }
  63. func DeepCopy_authorization_ResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error {
  64. {
  65. in := in.(*ResourceAttributes)
  66. out := out.(*ResourceAttributes)
  67. *out = *in
  68. return nil
  69. }
  70. }
  71. func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error {
  72. {
  73. in := in.(*SelfSubjectAccessReview)
  74. out := out.(*SelfSubjectAccessReview)
  75. *out = *in
  76. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  77. return err
  78. } else {
  79. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  80. }
  81. if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
  82. return err
  83. }
  84. return nil
  85. }
  86. }
  87. func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
  88. {
  89. in := in.(*SelfSubjectAccessReviewSpec)
  90. out := out.(*SelfSubjectAccessReviewSpec)
  91. *out = *in
  92. if in.ResourceAttributes != nil {
  93. in, out := &in.ResourceAttributes, &out.ResourceAttributes
  94. *out = new(ResourceAttributes)
  95. **out = **in
  96. }
  97. if in.NonResourceAttributes != nil {
  98. in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
  99. *out = new(NonResourceAttributes)
  100. **out = **in
  101. }
  102. return nil
  103. }
  104. }
  105. func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error {
  106. {
  107. in := in.(*SubjectAccessReview)
  108. out := out.(*SubjectAccessReview)
  109. *out = *in
  110. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  111. return err
  112. } else {
  113. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  114. }
  115. if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
  116. return err
  117. }
  118. return nil
  119. }
  120. }
  121. func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
  122. {
  123. in := in.(*SubjectAccessReviewSpec)
  124. out := out.(*SubjectAccessReviewSpec)
  125. *out = *in
  126. if in.ResourceAttributes != nil {
  127. in, out := &in.ResourceAttributes, &out.ResourceAttributes
  128. *out = new(ResourceAttributes)
  129. **out = **in
  130. }
  131. if in.NonResourceAttributes != nil {
  132. in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
  133. *out = new(NonResourceAttributes)
  134. **out = **in
  135. }
  136. if in.Groups != nil {
  137. in, out := &in.Groups, &out.Groups
  138. *out = make([]string, len(*in))
  139. copy(*out, *in)
  140. }
  141. if in.Extra != nil {
  142. in, out := &in.Extra, &out.Extra
  143. *out = make(map[string]ExtraValue)
  144. for key, val := range *in {
  145. if newVal, err := c.DeepCopy(&val); err != nil {
  146. return err
  147. } else {
  148. (*out)[key] = *newVal.(*ExtraValue)
  149. }
  150. }
  151. }
  152. return nil
  153. }
  154. }
  155. func DeepCopy_authorization_SubjectAccessReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
  156. {
  157. in := in.(*SubjectAccessReviewStatus)
  158. out := out.(*SubjectAccessReviewStatus)
  159. *out = *in
  160. return nil
  161. }
  162. }