zz_generated.conversion.go 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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(scheme *runtime.Scheme) error {
  29. return scheme.AddGeneratedConversionFuncs(
  30. Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential,
  31. Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential,
  32. Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec,
  33. Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec,
  34. Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus,
  35. Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus,
  36. Convert_v1alpha1_Response_To_clientauthentication_Response,
  37. Convert_clientauthentication_Response_To_v1alpha1_Response,
  38. )
  39. }
  40. func autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error {
  41. if err := Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil {
  42. return err
  43. }
  44. out.Status = (*clientauthentication.ExecCredentialStatus)(unsafe.Pointer(in.Status))
  45. return nil
  46. }
  47. // Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential is an autogenerated conversion function.
  48. func Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error {
  49. return autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in, out, s)
  50. }
  51. func autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error {
  52. if err := Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil {
  53. return err
  54. }
  55. out.Status = (*ExecCredentialStatus)(unsafe.Pointer(in.Status))
  56. return nil
  57. }
  58. // Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential is an autogenerated conversion function.
  59. func Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error {
  60. return autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in, out, s)
  61. }
  62. func autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error {
  63. out.Response = (*clientauthentication.Response)(unsafe.Pointer(in.Response))
  64. out.Interactive = in.Interactive
  65. return nil
  66. }
  67. // Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec is an autogenerated conversion function.
  68. func Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error {
  69. return autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in, out, s)
  70. }
  71. func autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error {
  72. out.Response = (*Response)(unsafe.Pointer(in.Response))
  73. out.Interactive = in.Interactive
  74. return nil
  75. }
  76. // Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec is an autogenerated conversion function.
  77. func Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error {
  78. return autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in, out, s)
  79. }
  80. func autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error {
  81. out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
  82. out.Token = in.Token
  83. out.ClientCertificateData = in.ClientCertificateData
  84. out.ClientKeyData = in.ClientKeyData
  85. return nil
  86. }
  87. // Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function.
  88. func Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error {
  89. return autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s)
  90. }
  91. func autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error {
  92. out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
  93. out.Token = in.Token
  94. out.ClientCertificateData = in.ClientCertificateData
  95. out.ClientKeyData = in.ClientKeyData
  96. return nil
  97. }
  98. // Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus is an autogenerated conversion function.
  99. func Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error {
  100. return autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in, out, s)
  101. }
  102. func autoConvert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error {
  103. out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header))
  104. out.Code = in.Code
  105. return nil
  106. }
  107. // Convert_v1alpha1_Response_To_clientauthentication_Response is an autogenerated conversion function.
  108. func Convert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error {
  109. return autoConvert_v1alpha1_Response_To_clientauthentication_Response(in, out, s)
  110. }
  111. func autoConvert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error {
  112. out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header))
  113. out.Code = in.Code
  114. return nil
  115. }
  116. // Convert_clientauthentication_Response_To_v1alpha1_Response is an autogenerated conversion function.
  117. func Convert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error {
  118. return autoConvert_clientauthentication_Response_To_v1alpha1_Response(in, out, s)
  119. }