...

Source file src/k8s.io/kubernetes/pkg/apis/admission/zz_generated.deepcopy.go

Documentation: k8s.io/kubernetes/pkg/apis/admission

     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 admission
    23  
    24  import (
    25  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  	runtime "k8s.io/apimachinery/pkg/runtime"
    27  )
    28  
    29  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    30  func (in *AdmissionRequest) DeepCopyInto(out *AdmissionRequest) {
    31  	*out = *in
    32  	out.Kind = in.Kind
    33  	out.Resource = in.Resource
    34  	if in.RequestKind != nil {
    35  		in, out := &in.RequestKind, &out.RequestKind
    36  		*out = new(v1.GroupVersionKind)
    37  		**out = **in
    38  	}
    39  	if in.RequestResource != nil {
    40  		in, out := &in.RequestResource, &out.RequestResource
    41  		*out = new(v1.GroupVersionResource)
    42  		**out = **in
    43  	}
    44  	in.UserInfo.DeepCopyInto(&out.UserInfo)
    45  	if in.Object != nil {
    46  		out.Object = in.Object.DeepCopyObject()
    47  	}
    48  	if in.OldObject != nil {
    49  		out.OldObject = in.OldObject.DeepCopyObject()
    50  	}
    51  	if in.DryRun != nil {
    52  		in, out := &in.DryRun, &out.DryRun
    53  		*out = new(bool)
    54  		**out = **in
    55  	}
    56  	if in.Options != nil {
    57  		out.Options = in.Options.DeepCopyObject()
    58  	}
    59  	return
    60  }
    61  
    62  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionRequest.
    63  func (in *AdmissionRequest) DeepCopy() *AdmissionRequest {
    64  	if in == nil {
    65  		return nil
    66  	}
    67  	out := new(AdmissionRequest)
    68  	in.DeepCopyInto(out)
    69  	return out
    70  }
    71  
    72  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    73  func (in *AdmissionResponse) DeepCopyInto(out *AdmissionResponse) {
    74  	*out = *in
    75  	if in.Result != nil {
    76  		in, out := &in.Result, &out.Result
    77  		*out = new(v1.Status)
    78  		(*in).DeepCopyInto(*out)
    79  	}
    80  	if in.Patch != nil {
    81  		in, out := &in.Patch, &out.Patch
    82  		*out = make([]byte, len(*in))
    83  		copy(*out, *in)
    84  	}
    85  	if in.PatchType != nil {
    86  		in, out := &in.PatchType, &out.PatchType
    87  		*out = new(PatchType)
    88  		**out = **in
    89  	}
    90  	if in.AuditAnnotations != nil {
    91  		in, out := &in.AuditAnnotations, &out.AuditAnnotations
    92  		*out = make(map[string]string, len(*in))
    93  		for key, val := range *in {
    94  			(*out)[key] = val
    95  		}
    96  	}
    97  	if in.Warnings != nil {
    98  		in, out := &in.Warnings, &out.Warnings
    99  		*out = make([]string, len(*in))
   100  		copy(*out, *in)
   101  	}
   102  	return
   103  }
   104  
   105  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionResponse.
   106  func (in *AdmissionResponse) DeepCopy() *AdmissionResponse {
   107  	if in == nil {
   108  		return nil
   109  	}
   110  	out := new(AdmissionResponse)
   111  	in.DeepCopyInto(out)
   112  	return out
   113  }
   114  
   115  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   116  func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) {
   117  	*out = *in
   118  	out.TypeMeta = in.TypeMeta
   119  	if in.Request != nil {
   120  		in, out := &in.Request, &out.Request
   121  		*out = new(AdmissionRequest)
   122  		(*in).DeepCopyInto(*out)
   123  	}
   124  	if in.Response != nil {
   125  		in, out := &in.Response, &out.Response
   126  		*out = new(AdmissionResponse)
   127  		(*in).DeepCopyInto(*out)
   128  	}
   129  	return
   130  }
   131  
   132  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview.
   133  func (in *AdmissionReview) DeepCopy() *AdmissionReview {
   134  	if in == nil {
   135  		return nil
   136  	}
   137  	out := new(AdmissionReview)
   138  	in.DeepCopyInto(out)
   139  	return out
   140  }
   141  
   142  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   143  func (in *AdmissionReview) DeepCopyObject() runtime.Object {
   144  	if c := in.DeepCopy(); c != nil {
   145  		return c
   146  	}
   147  	return nil
   148  }
   149  

View as plain text