...

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

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

View as plain text