k8s.io/client-go@v0.22.2/pkg/apis/clientauthentication/v1alpha1/zz_generated.conversion.go (about)

     1  // +build !ignore_autogenerated
     2  
     3  /*
     4  Copyright The Kubernetes Authors.
     5  
     6  Licensed under the Apache License, Version 2.0 (the "License");
     7  you may not use this file except in compliance with the License.
     8  You may obtain a copy of the License at
     9  
    10      http://www.apache.org/licenses/LICENSE-2.0
    11  
    12  Unless required by applicable law or agreed to in writing, software
    13  distributed under the License is distributed on an "AS IS" BASIS,
    14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  See the License for the specific language governing permissions and
    16  limitations under the License.
    17  */
    18  
    19  // Code generated by conversion-gen. DO NOT EDIT.
    20  
    21  package v1alpha1
    22  
    23  import (
    24  	unsafe "unsafe"
    25  
    26  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    27  	conversion "k8s.io/apimachinery/pkg/conversion"
    28  	runtime "k8s.io/apimachinery/pkg/runtime"
    29  	clientauthentication "k8s.io/client-go/pkg/apis/clientauthentication"
    30  )
    31  
    32  func init() {
    33  	localSchemeBuilder.Register(RegisterConversions)
    34  }
    35  
    36  // RegisterConversions adds conversion functions to the given scheme.
    37  // Public to allow building arbitrary schemes.
    38  func RegisterConversions(s *runtime.Scheme) error {
    39  	if err := s.AddGeneratedConversionFunc((*ExecCredential)(nil), (*clientauthentication.ExecCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
    40  		return Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(a.(*ExecCredential), b.(*clientauthentication.ExecCredential), scope)
    41  	}); err != nil {
    42  		return err
    43  	}
    44  	if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredential)(nil), (*ExecCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
    45  		return Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(a.(*clientauthentication.ExecCredential), b.(*ExecCredential), scope)
    46  	}); err != nil {
    47  		return err
    48  	}
    49  	if err := s.AddGeneratedConversionFunc((*ExecCredentialSpec)(nil), (*clientauthentication.ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    50  		return Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(a.(*ExecCredentialSpec), b.(*clientauthentication.ExecCredentialSpec), scope)
    51  	}); err != nil {
    52  		return err
    53  	}
    54  	if err := s.AddGeneratedConversionFunc((*ExecCredentialStatus)(nil), (*clientauthentication.ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
    55  		return Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(a.(*ExecCredentialStatus), b.(*clientauthentication.ExecCredentialStatus), scope)
    56  	}); err != nil {
    57  		return err
    58  	}
    59  	if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredentialStatus)(nil), (*ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
    60  		return Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(a.(*clientauthentication.ExecCredentialStatus), b.(*ExecCredentialStatus), scope)
    61  	}); err != nil {
    62  		return err
    63  	}
    64  	if err := s.AddGeneratedConversionFunc((*Response)(nil), (*clientauthentication.Response)(nil), func(a, b interface{}, scope conversion.Scope) error {
    65  		return Convert_v1alpha1_Response_To_clientauthentication_Response(a.(*Response), b.(*clientauthentication.Response), scope)
    66  	}); err != nil {
    67  		return err
    68  	}
    69  	if err := s.AddGeneratedConversionFunc((*clientauthentication.Response)(nil), (*Response)(nil), func(a, b interface{}, scope conversion.Scope) error {
    70  		return Convert_clientauthentication_Response_To_v1alpha1_Response(a.(*clientauthentication.Response), b.(*Response), scope)
    71  	}); err != nil {
    72  		return err
    73  	}
    74  	if err := s.AddConversionFunc((*clientauthentication.ExecCredentialSpec)(nil), (*ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    75  		return Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(a.(*clientauthentication.ExecCredentialSpec), b.(*ExecCredentialSpec), scope)
    76  	}); err != nil {
    77  		return err
    78  	}
    79  	return nil
    80  }
    81  
    82  func autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error {
    83  	if err := Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil {
    84  		return err
    85  	}
    86  	out.Status = (*clientauthentication.ExecCredentialStatus)(unsafe.Pointer(in.Status))
    87  	return nil
    88  }
    89  
    90  // Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential is an autogenerated conversion function.
    91  func Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error {
    92  	return autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in, out, s)
    93  }
    94  
    95  func autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error {
    96  	if err := Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil {
    97  		return err
    98  	}
    99  	out.Status = (*ExecCredentialStatus)(unsafe.Pointer(in.Status))
   100  	return nil
   101  }
   102  
   103  // Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential is an autogenerated conversion function.
   104  func Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error {
   105  	return autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in, out, s)
   106  }
   107  
   108  func autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error {
   109  	out.Response = (*clientauthentication.Response)(unsafe.Pointer(in.Response))
   110  	out.Interactive = in.Interactive
   111  	return nil
   112  }
   113  
   114  // Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec is an autogenerated conversion function.
   115  func Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error {
   116  	return autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in, out, s)
   117  }
   118  
   119  func autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error {
   120  	out.Response = (*Response)(unsafe.Pointer(in.Response))
   121  	out.Interactive = in.Interactive
   122  	// WARNING: in.Cluster requires manual conversion: does not exist in peer-type
   123  	return nil
   124  }
   125  
   126  func autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error {
   127  	out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
   128  	out.Token = in.Token
   129  	out.ClientCertificateData = in.ClientCertificateData
   130  	out.ClientKeyData = in.ClientKeyData
   131  	return nil
   132  }
   133  
   134  // Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function.
   135  func Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error {
   136  	return autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s)
   137  }
   138  
   139  func autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error {
   140  	out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp))
   141  	out.Token = in.Token
   142  	out.ClientCertificateData = in.ClientCertificateData
   143  	out.ClientKeyData = in.ClientKeyData
   144  	return nil
   145  }
   146  
   147  // Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus is an autogenerated conversion function.
   148  func Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error {
   149  	return autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in, out, s)
   150  }
   151  
   152  func autoConvert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error {
   153  	out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header))
   154  	out.Code = in.Code
   155  	return nil
   156  }
   157  
   158  // Convert_v1alpha1_Response_To_clientauthentication_Response is an autogenerated conversion function.
   159  func Convert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error {
   160  	return autoConvert_v1alpha1_Response_To_clientauthentication_Response(in, out, s)
   161  }
   162  
   163  func autoConvert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error {
   164  	out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header))
   165  	out.Code = in.Code
   166  	return nil
   167  }
   168  
   169  // Convert_clientauthentication_Response_To_v1alpha1_Response is an autogenerated conversion function.
   170  func Convert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error {
   171  	return autoConvert_clientauthentication_Response_To_v1alpha1_Response(in, out, s)
   172  }