...

Source file src/k8s.io/api/certificates/v1/zz_generated.deepcopy.go

Documentation: k8s.io/api/certificates/v1

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package v1
    23  
    24  import (
    25  	runtime "k8s.io/apimachinery/pkg/runtime"
    26  )
    27  
    28  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    29  func (in *CertificateSigningRequest) DeepCopyInto(out *CertificateSigningRequest) {
    30  	*out = *in
    31  	out.TypeMeta = in.TypeMeta
    32  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    33  	in.Spec.DeepCopyInto(&out.Spec)
    34  	in.Status.DeepCopyInto(&out.Status)
    35  	return
    36  }
    37  
    38  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequest.
    39  func (in *CertificateSigningRequest) DeepCopy() *CertificateSigningRequest {
    40  	if in == nil {
    41  		return nil
    42  	}
    43  	out := new(CertificateSigningRequest)
    44  	in.DeepCopyInto(out)
    45  	return out
    46  }
    47  
    48  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    49  func (in *CertificateSigningRequest) DeepCopyObject() runtime.Object {
    50  	if c := in.DeepCopy(); c != nil {
    51  		return c
    52  	}
    53  	return nil
    54  }
    55  
    56  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    57  func (in *CertificateSigningRequestCondition) DeepCopyInto(out *CertificateSigningRequestCondition) {
    58  	*out = *in
    59  	in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
    60  	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
    61  	return
    62  }
    63  
    64  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestCondition.
    65  func (in *CertificateSigningRequestCondition) DeepCopy() *CertificateSigningRequestCondition {
    66  	if in == nil {
    67  		return nil
    68  	}
    69  	out := new(CertificateSigningRequestCondition)
    70  	in.DeepCopyInto(out)
    71  	return out
    72  }
    73  
    74  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    75  func (in *CertificateSigningRequestList) DeepCopyInto(out *CertificateSigningRequestList) {
    76  	*out = *in
    77  	out.TypeMeta = in.TypeMeta
    78  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    79  	if in.Items != nil {
    80  		in, out := &in.Items, &out.Items
    81  		*out = make([]CertificateSigningRequest, len(*in))
    82  		for i := range *in {
    83  			(*in)[i].DeepCopyInto(&(*out)[i])
    84  		}
    85  	}
    86  	return
    87  }
    88  
    89  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestList.
    90  func (in *CertificateSigningRequestList) DeepCopy() *CertificateSigningRequestList {
    91  	if in == nil {
    92  		return nil
    93  	}
    94  	out := new(CertificateSigningRequestList)
    95  	in.DeepCopyInto(out)
    96  	return out
    97  }
    98  
    99  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   100  func (in *CertificateSigningRequestList) DeepCopyObject() runtime.Object {
   101  	if c := in.DeepCopy(); c != nil {
   102  		return c
   103  	}
   104  	return nil
   105  }
   106  
   107  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   108  func (in *CertificateSigningRequestSpec) DeepCopyInto(out *CertificateSigningRequestSpec) {
   109  	*out = *in
   110  	if in.Request != nil {
   111  		in, out := &in.Request, &out.Request
   112  		*out = make([]byte, len(*in))
   113  		copy(*out, *in)
   114  	}
   115  	if in.ExpirationSeconds != nil {
   116  		in, out := &in.ExpirationSeconds, &out.ExpirationSeconds
   117  		*out = new(int32)
   118  		**out = **in
   119  	}
   120  	if in.Usages != nil {
   121  		in, out := &in.Usages, &out.Usages
   122  		*out = make([]KeyUsage, len(*in))
   123  		copy(*out, *in)
   124  	}
   125  	if in.Groups != nil {
   126  		in, out := &in.Groups, &out.Groups
   127  		*out = make([]string, len(*in))
   128  		copy(*out, *in)
   129  	}
   130  	if in.Extra != nil {
   131  		in, out := &in.Extra, &out.Extra
   132  		*out = make(map[string]ExtraValue, len(*in))
   133  		for key, val := range *in {
   134  			var outVal []string
   135  			if val == nil {
   136  				(*out)[key] = nil
   137  			} else {
   138  				in, out := &val, &outVal
   139  				*out = make(ExtraValue, len(*in))
   140  				copy(*out, *in)
   141  			}
   142  			(*out)[key] = outVal
   143  		}
   144  	}
   145  	return
   146  }
   147  
   148  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec.
   149  func (in *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec {
   150  	if in == nil {
   151  		return nil
   152  	}
   153  	out := new(CertificateSigningRequestSpec)
   154  	in.DeepCopyInto(out)
   155  	return out
   156  }
   157  
   158  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   159  func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) {
   160  	*out = *in
   161  	if in.Conditions != nil {
   162  		in, out := &in.Conditions, &out.Conditions
   163  		*out = make([]CertificateSigningRequestCondition, len(*in))
   164  		for i := range *in {
   165  			(*in)[i].DeepCopyInto(&(*out)[i])
   166  		}
   167  	}
   168  	if in.Certificate != nil {
   169  		in, out := &in.Certificate, &out.Certificate
   170  		*out = make([]byte, len(*in))
   171  		copy(*out, *in)
   172  	}
   173  	return
   174  }
   175  
   176  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus.
   177  func (in *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus {
   178  	if in == nil {
   179  		return nil
   180  	}
   181  	out := new(CertificateSigningRequestStatus)
   182  	in.DeepCopyInto(out)
   183  	return out
   184  }
   185  
   186  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   187  func (in ExtraValue) DeepCopyInto(out *ExtraValue) {
   188  	{
   189  		in := &in
   190  		*out = make(ExtraValue, len(*in))
   191  		copy(*out, *in)
   192  		return
   193  	}
   194  }
   195  
   196  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
   197  func (in ExtraValue) DeepCopy() ExtraValue {
   198  	if in == nil {
   199  		return nil
   200  	}
   201  	out := new(ExtraValue)
   202  	in.DeepCopyInto(out)
   203  	return *out
   204  }
   205  

View as plain text