...

Source file src/k8s.io/kubernetes/cmd/kubeadm/app/apis/bootstraptoken/v1/zz_generated.deepcopy.go

Documentation: k8s.io/kubernetes/cmd/kubeadm/app/apis/bootstraptoken/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  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  )
    27  
    28  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    29  func (in *BootstrapToken) DeepCopyInto(out *BootstrapToken) {
    30  	*out = *in
    31  	if in.Token != nil {
    32  		in, out := &in.Token, &out.Token
    33  		*out = new(BootstrapTokenString)
    34  		**out = **in
    35  	}
    36  	if in.TTL != nil {
    37  		in, out := &in.TTL, &out.TTL
    38  		*out = new(metav1.Duration)
    39  		**out = **in
    40  	}
    41  	if in.Expires != nil {
    42  		in, out := &in.Expires, &out.Expires
    43  		*out = (*in).DeepCopy()
    44  	}
    45  	if in.Usages != nil {
    46  		in, out := &in.Usages, &out.Usages
    47  		*out = make([]string, len(*in))
    48  		copy(*out, *in)
    49  	}
    50  	if in.Groups != nil {
    51  		in, out := &in.Groups, &out.Groups
    52  		*out = make([]string, len(*in))
    53  		copy(*out, *in)
    54  	}
    55  	return
    56  }
    57  
    58  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapToken.
    59  func (in *BootstrapToken) DeepCopy() *BootstrapToken {
    60  	if in == nil {
    61  		return nil
    62  	}
    63  	out := new(BootstrapToken)
    64  	in.DeepCopyInto(out)
    65  	return out
    66  }
    67  

View as plain text