zz_generated.deepcopy.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 authentication
  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_authentication_TokenReview, InType: reflect.TypeOf(&TokenReview{})},
  30. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewSpec, InType: reflect.TypeOf(&TokenReviewSpec{})},
  31. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewStatus, InType: reflect.TypeOf(&TokenReviewStatus{})},
  32. conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_UserInfo, InType: reflect.TypeOf(&UserInfo{})},
  33. )
  34. }
  35. func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error {
  36. {
  37. in := in.(*TokenReview)
  38. out := out.(*TokenReview)
  39. *out = *in
  40. if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
  41. return err
  42. } else {
  43. out.ObjectMeta = *newVal.(*v1.ObjectMeta)
  44. }
  45. if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
  46. return err
  47. }
  48. return nil
  49. }
  50. }
  51. func DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
  52. {
  53. in := in.(*TokenReviewSpec)
  54. out := out.(*TokenReviewSpec)
  55. *out = *in
  56. return nil
  57. }
  58. }
  59. func DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
  60. {
  61. in := in.(*TokenReviewStatus)
  62. out := out.(*TokenReviewStatus)
  63. *out = *in
  64. if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil {
  65. return err
  66. }
  67. return nil
  68. }
  69. }
  70. func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error {
  71. {
  72. in := in.(*UserInfo)
  73. out := out.(*UserInfo)
  74. *out = *in
  75. if in.Groups != nil {
  76. in, out := &in.Groups, &out.Groups
  77. *out = make([]string, len(*in))
  78. copy(*out, *in)
  79. }
  80. if in.Extra != nil {
  81. in, out := &in.Extra, &out.Extra
  82. *out = make(map[string]ExtraValue)
  83. for key, val := range *in {
  84. if newVal, err := c.DeepCopy(&val); err != nil {
  85. return err
  86. } else {
  87. (*out)[key] = *newVal.(*ExtraValue)
  88. }
  89. }
  90. }
  91. return nil
  92. }
  93. }