zz_generated.conversion.go 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 conversion-gen. DO NOT EDIT.
  15. package v1alpha1
  16. import (
  17. unsafe "unsafe"
  18. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. conversion "k8s.io/apimachinery/pkg/conversion"
  20. runtime "k8s.io/apimachinery/pkg/runtime"
  21. clientauthentication "k8s.io/client-go/pkg/apis/clientauthentication"
  22. )
  23. func init() {
  24. localSchemeBuilder.Register(RegisterConversions)
  25. }
  26. // RegisterConversions adds conversion functions to the given scheme.
  27. // Public to allow building arbitrary schemes.
  28. func RegisterConversions(s *runtime.Scheme) error {
  29. if err := s.AddGeneratedConversionFunc((*ExecCredential)(nil), (*clientauthentication.ExecCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
  30. return Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(a.(*ExecCredential), b.(*clientauthentication.ExecCredential), scope)
  31. }); err != nil {
  32. return err
  33. }
  34. if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredential)(nil), (*ExecCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
  35. return Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(a.(*clientauthentication.ExecCredential), b.(*ExecCredential), scope)
  36. }); err != nil {
  37. return err
  38. }
  39. if err := s.AddGeneratedConversionFunc((*ExecCredentialSpec)(nil), (*clientauthentication.ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
  40. return Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(a.(*ExecCredentialSpec), b.(*clientauthentication.ExecCredentialSpec), scope)
  41. }); err != nil {
  42. return err
  43. }
  44. if err := s.AddGeneratedConversionFunc((*ExecCredentialStatus)(nil), (*clientauthentication.ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
  45. return Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(a.(*ExecCredentialStatus), b.(*clientauthentication.ExecCredentialStatus), scope)
  46. }); err != nil {
  47. return err
  48. }
  49. if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredentialStatus)(nil), (*ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
  50. return Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(a.(*clientauthentication.ExecCredentialStatus), b.(*ExecCredentialStatus), scope)
  51. }); err != nil {
  52. return err
  53. }
  54. if err := s.AddGeneratedConversionFunc((*Response)(nil), (*clientauthentication.Response)(nil), func(a, b interface{}, scope conversion.Scope) error {
  55. return Convert_v1alpha1_Response_To_clientauthentication_Response(a.(*Response), b.(*clientauthentication.Response), scope)
  56. }); err != nil {
  57. return err
  58. }
  59. if err := s.AddGeneratedConversionFunc((*clientauthentication.Response)(nil), (*Response)(nil), func(a, b interface{}, scope conversion.Scope) error {
  60. return Convert_clientauthentication_Response_To_v1alpha1_Response(a.(*clientauthentication.Response), b.(*Response), scope)
  61. }); err != nil {
  62. return err
  63. }
  64. if err := s.AddConversionFunc((*clientauthentication.ExecCredentialSpec)(nil), (*ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
  65. return Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(a.(*clientauthentication.ExecCredentialSpec), b.(*ExecCredentialSpec), scope)
  66. }); err != nil {
  67. return err
  68. }
  69. return nil
  70. }
  71. func autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error {
  72. if err := Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil {
  73. return err
  74. }
  75. out.Status = (*clientauthentication.ExecCredentialStatus)(unsafe.Pointer(in.Status))
  76. return nil
  77. }
  78. // Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential is an autogenerated conversion function.
  79. func Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error {
  80. return autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in, out, s)
  81. }
  82. func autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error {
  83. if err := Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil {
  84. return err
  85. }
  86. out.Status = (*ExecCredentialStatus)(unsafe.Pointer(in.Status))
  87. return nil
  88. }
  89. // Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential is an autogenerated conversion function.
  90. func Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error {
  91. return autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in, out, s)
  92. }
  93. func autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error {
  94. out.Response = (*clientauthentication.Response)(unsafe.Pointer(in.Response))
  95. out.Interactive = in.Interactive
  96. return nil
  97. }
  98. // Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec is an autogenerated conversion function.
  99. func Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error {
  100. return autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in, out, s)
  101. }
  102. func autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error {
  103. out.Response = (*Response)(unsafe.Pointer(in.Response))
  104. out.Interactive = in.Interactive
  105. // WARNING: in.Cluster requires manual conversion: does not exist in peer-type
  106. return nil
  107. }
  108. func autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error {
  109. out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
  110. out.Token = in.Token
  111. out.ClientCertificateData = in.ClientCertificateData
  112. out.ClientKeyData = in.ClientKeyData
  113. return nil
  114. }
  115. // Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function.
  116. func Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error {
  117. return autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s)
  118. }
  119. func autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error {
  120. out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
  121. out.Token = in.Token
  122. out.ClientCertificateData = in.ClientCertificateData
  123. out.ClientKeyData = in.ClientKeyData
  124. return nil
  125. }
  126. // Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus is an autogenerated conversion function.
  127. func Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error {
  128. return autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in, out, s)
  129. }
  130. func autoConvert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error {
  131. out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header))
  132. out.Code = in.Code
  133. return nil
  134. }
  135. // Convert_v1alpha1_Response_To_clientauthentication_Response is an autogenerated conversion function.
  136. func Convert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error {
  137. return autoConvert_v1alpha1_Response_To_clientauthentication_Response(in, out, s)
  138. }
  139. func autoConvert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error {
  140. out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header))
  141. out.Code = in.Code
  142. return nil
  143. }
  144. // Convert_clientauthentication_Response_To_v1alpha1_Response is an autogenerated conversion function.
  145. func Convert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error {
  146. return autoConvert_clientauthentication_Response_To_v1alpha1_Response(in, out, s)
  147. }