...

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

Documentation: k8s.io/api/certificates/v1beta1

     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 v1beta1
    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.SignerName != nil {
   116  		in, out := &in.SignerName, &out.SignerName
   117  		*out = new(string)
   118  		**out = **in
   119  	}
   120  	if in.ExpirationSeconds != nil {
   121  		in, out := &in.ExpirationSeconds, &out.ExpirationSeconds
   122  		*out = new(int32)
   123  		**out = **in
   124  	}
   125  	if in.Usages != nil {
   126  		in, out := &in.Usages, &out.Usages
   127  		*out = make([]KeyUsage, len(*in))
   128  		copy(*out, *in)
   129  	}
   130  	if in.Groups != nil {
   131  		in, out := &in.Groups, &out.Groups
   132  		*out = make([]string, len(*in))
   133  		copy(*out, *in)
   134  	}
   135  	if in.Extra != nil {
   136  		in, out := &in.Extra, &out.Extra
   137  		*out = make(map[string]ExtraValue, len(*in))
   138  		for key, val := range *in {
   139  			var outVal []string
   140  			if val == nil {
   141  				(*out)[key] = nil
   142  			} else {
   143  				in, out := &val, &outVal
   144  				*out = make(ExtraValue, len(*in))
   145  				copy(*out, *in)
   146  			}
   147  			(*out)[key] = outVal
   148  		}
   149  	}
   150  	return
   151  }
   152  
   153  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec.
   154  func (in *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec {
   155  	if in == nil {
   156  		return nil
   157  	}
   158  	out := new(CertificateSigningRequestSpec)
   159  	in.DeepCopyInto(out)
   160  	return out
   161  }
   162  
   163  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   164  func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) {
   165  	*out = *in
   166  	if in.Conditions != nil {
   167  		in, out := &in.Conditions, &out.Conditions
   168  		*out = make([]CertificateSigningRequestCondition, len(*in))
   169  		for i := range *in {
   170  			(*in)[i].DeepCopyInto(&(*out)[i])
   171  		}
   172  	}
   173  	if in.Certificate != nil {
   174  		in, out := &in.Certificate, &out.Certificate
   175  		*out = make([]byte, len(*in))
   176  		copy(*out, *in)
   177  	}
   178  	return
   179  }
   180  
   181  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus.
   182  func (in *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus {
   183  	if in == nil {
   184  		return nil
   185  	}
   186  	out := new(CertificateSigningRequestStatus)
   187  	in.DeepCopyInto(out)
   188  	return out
   189  }
   190  
   191  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   192  func (in ExtraValue) DeepCopyInto(out *ExtraValue) {
   193  	{
   194  		in := &in
   195  		*out = make(ExtraValue, len(*in))
   196  		copy(*out, *in)
   197  		return
   198  	}
   199  }
   200  
   201  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
   202  func (in ExtraValue) DeepCopy() ExtraValue {
   203  	if in == nil {
   204  		return nil
   205  	}
   206  	out := new(ExtraValue)
   207  	in.DeepCopyInto(out)
   208  	return *out
   209  }
   210  

View as plain text