k8s.io/apiserver@v0.31.1/pkg/apis/audit/zz_generated.deepcopy.go (about)

     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 audit
    23  
    24  import (
    25  	v1 "k8s.io/api/authentication/v1"
    26  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    27  	runtime "k8s.io/apimachinery/pkg/runtime"
    28  )
    29  
    30  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    31  func (in *Event) DeepCopyInto(out *Event) {
    32  	*out = *in
    33  	out.TypeMeta = in.TypeMeta
    34  	in.User.DeepCopyInto(&out.User)
    35  	if in.ImpersonatedUser != nil {
    36  		in, out := &in.ImpersonatedUser, &out.ImpersonatedUser
    37  		*out = new(v1.UserInfo)
    38  		(*in).DeepCopyInto(*out)
    39  	}
    40  	if in.SourceIPs != nil {
    41  		in, out := &in.SourceIPs, &out.SourceIPs
    42  		*out = make([]string, len(*in))
    43  		copy(*out, *in)
    44  	}
    45  	if in.ObjectRef != nil {
    46  		in, out := &in.ObjectRef, &out.ObjectRef
    47  		*out = new(ObjectReference)
    48  		**out = **in
    49  	}
    50  	if in.ResponseStatus != nil {
    51  		in, out := &in.ResponseStatus, &out.ResponseStatus
    52  		*out = new(metav1.Status)
    53  		(*in).DeepCopyInto(*out)
    54  	}
    55  	if in.RequestObject != nil {
    56  		in, out := &in.RequestObject, &out.RequestObject
    57  		*out = new(runtime.Unknown)
    58  		(*in).DeepCopyInto(*out)
    59  	}
    60  	if in.ResponseObject != nil {
    61  		in, out := &in.ResponseObject, &out.ResponseObject
    62  		*out = new(runtime.Unknown)
    63  		(*in).DeepCopyInto(*out)
    64  	}
    65  	in.RequestReceivedTimestamp.DeepCopyInto(&out.RequestReceivedTimestamp)
    66  	in.StageTimestamp.DeepCopyInto(&out.StageTimestamp)
    67  	if in.Annotations != nil {
    68  		in, out := &in.Annotations, &out.Annotations
    69  		*out = make(map[string]string, len(*in))
    70  		for key, val := range *in {
    71  			(*out)[key] = val
    72  		}
    73  	}
    74  	return
    75  }
    76  
    77  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
    78  func (in *Event) DeepCopy() *Event {
    79  	if in == nil {
    80  		return nil
    81  	}
    82  	out := new(Event)
    83  	in.DeepCopyInto(out)
    84  	return out
    85  }
    86  
    87  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    88  func (in *Event) DeepCopyObject() runtime.Object {
    89  	if c := in.DeepCopy(); c != nil {
    90  		return c
    91  	}
    92  	return nil
    93  }
    94  
    95  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    96  func (in *EventList) DeepCopyInto(out *EventList) {
    97  	*out = *in
    98  	out.TypeMeta = in.TypeMeta
    99  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   100  	if in.Items != nil {
   101  		in, out := &in.Items, &out.Items
   102  		*out = make([]Event, len(*in))
   103  		for i := range *in {
   104  			(*in)[i].DeepCopyInto(&(*out)[i])
   105  		}
   106  	}
   107  	return
   108  }
   109  
   110  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
   111  func (in *EventList) DeepCopy() *EventList {
   112  	if in == nil {
   113  		return nil
   114  	}
   115  	out := new(EventList)
   116  	in.DeepCopyInto(out)
   117  	return out
   118  }
   119  
   120  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   121  func (in *EventList) DeepCopyObject() runtime.Object {
   122  	if c := in.DeepCopy(); c != nil {
   123  		return c
   124  	}
   125  	return nil
   126  }
   127  
   128  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   129  func (in *GroupResources) DeepCopyInto(out *GroupResources) {
   130  	*out = *in
   131  	if in.Resources != nil {
   132  		in, out := &in.Resources, &out.Resources
   133  		*out = make([]string, len(*in))
   134  		copy(*out, *in)
   135  	}
   136  	if in.ResourceNames != nil {
   137  		in, out := &in.ResourceNames, &out.ResourceNames
   138  		*out = make([]string, len(*in))
   139  		copy(*out, *in)
   140  	}
   141  	return
   142  }
   143  
   144  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
   145  func (in *GroupResources) DeepCopy() *GroupResources {
   146  	if in == nil {
   147  		return nil
   148  	}
   149  	out := new(GroupResources)
   150  	in.DeepCopyInto(out)
   151  	return out
   152  }
   153  
   154  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   155  func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
   156  	*out = *in
   157  	return
   158  }
   159  
   160  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
   161  func (in *ObjectReference) DeepCopy() *ObjectReference {
   162  	if in == nil {
   163  		return nil
   164  	}
   165  	out := new(ObjectReference)
   166  	in.DeepCopyInto(out)
   167  	return out
   168  }
   169  
   170  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   171  func (in *Policy) DeepCopyInto(out *Policy) {
   172  	*out = *in
   173  	out.TypeMeta = in.TypeMeta
   174  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   175  	if in.Rules != nil {
   176  		in, out := &in.Rules, &out.Rules
   177  		*out = make([]PolicyRule, len(*in))
   178  		for i := range *in {
   179  			(*in)[i].DeepCopyInto(&(*out)[i])
   180  		}
   181  	}
   182  	if in.OmitStages != nil {
   183  		in, out := &in.OmitStages, &out.OmitStages
   184  		*out = make([]Stage, len(*in))
   185  		copy(*out, *in)
   186  	}
   187  	return
   188  }
   189  
   190  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
   191  func (in *Policy) DeepCopy() *Policy {
   192  	if in == nil {
   193  		return nil
   194  	}
   195  	out := new(Policy)
   196  	in.DeepCopyInto(out)
   197  	return out
   198  }
   199  
   200  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   201  func (in *Policy) DeepCopyObject() runtime.Object {
   202  	if c := in.DeepCopy(); c != nil {
   203  		return c
   204  	}
   205  	return nil
   206  }
   207  
   208  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   209  func (in *PolicyList) DeepCopyInto(out *PolicyList) {
   210  	*out = *in
   211  	out.TypeMeta = in.TypeMeta
   212  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   213  	if in.Items != nil {
   214  		in, out := &in.Items, &out.Items
   215  		*out = make([]Policy, len(*in))
   216  		for i := range *in {
   217  			(*in)[i].DeepCopyInto(&(*out)[i])
   218  		}
   219  	}
   220  	return
   221  }
   222  
   223  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
   224  func (in *PolicyList) DeepCopy() *PolicyList {
   225  	if in == nil {
   226  		return nil
   227  	}
   228  	out := new(PolicyList)
   229  	in.DeepCopyInto(out)
   230  	return out
   231  }
   232  
   233  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   234  func (in *PolicyList) DeepCopyObject() runtime.Object {
   235  	if c := in.DeepCopy(); c != nil {
   236  		return c
   237  	}
   238  	return nil
   239  }
   240  
   241  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   242  func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
   243  	*out = *in
   244  	if in.Users != nil {
   245  		in, out := &in.Users, &out.Users
   246  		*out = make([]string, len(*in))
   247  		copy(*out, *in)
   248  	}
   249  	if in.UserGroups != nil {
   250  		in, out := &in.UserGroups, &out.UserGroups
   251  		*out = make([]string, len(*in))
   252  		copy(*out, *in)
   253  	}
   254  	if in.Verbs != nil {
   255  		in, out := &in.Verbs, &out.Verbs
   256  		*out = make([]string, len(*in))
   257  		copy(*out, *in)
   258  	}
   259  	if in.Resources != nil {
   260  		in, out := &in.Resources, &out.Resources
   261  		*out = make([]GroupResources, len(*in))
   262  		for i := range *in {
   263  			(*in)[i].DeepCopyInto(&(*out)[i])
   264  		}
   265  	}
   266  	if in.Namespaces != nil {
   267  		in, out := &in.Namespaces, &out.Namespaces
   268  		*out = make([]string, len(*in))
   269  		copy(*out, *in)
   270  	}
   271  	if in.NonResourceURLs != nil {
   272  		in, out := &in.NonResourceURLs, &out.NonResourceURLs
   273  		*out = make([]string, len(*in))
   274  		copy(*out, *in)
   275  	}
   276  	if in.OmitStages != nil {
   277  		in, out := &in.OmitStages, &out.OmitStages
   278  		*out = make([]Stage, len(*in))
   279  		copy(*out, *in)
   280  	}
   281  	if in.OmitManagedFields != nil {
   282  		in, out := &in.OmitManagedFields, &out.OmitManagedFields
   283  		*out = new(bool)
   284  		**out = **in
   285  	}
   286  	return
   287  }
   288  
   289  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
   290  func (in *PolicyRule) DeepCopy() *PolicyRule {
   291  	if in == nil {
   292  		return nil
   293  	}
   294  	out := new(PolicyRule)
   295  	in.DeepCopyInto(out)
   296  	return out
   297  }