...

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

Documentation: k8s.io/api/authorization/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 ExtraValue) DeepCopyInto(out *ExtraValue) {
    30  	{
    31  		in := &in
    32  		*out = make(ExtraValue, len(*in))
    33  		copy(*out, *in)
    34  		return
    35  	}
    36  }
    37  
    38  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
    39  func (in ExtraValue) DeepCopy() ExtraValue {
    40  	if in == nil {
    41  		return nil
    42  	}
    43  	out := new(ExtraValue)
    44  	in.DeepCopyInto(out)
    45  	return *out
    46  }
    47  
    48  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    49  func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) {
    50  	*out = *in
    51  	out.TypeMeta = in.TypeMeta
    52  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    53  	in.Spec.DeepCopyInto(&out.Spec)
    54  	out.Status = in.Status
    55  	return
    56  }
    57  
    58  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview.
    59  func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview {
    60  	if in == nil {
    61  		return nil
    62  	}
    63  	out := new(LocalSubjectAccessReview)
    64  	in.DeepCopyInto(out)
    65  	return out
    66  }
    67  
    68  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    69  func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object {
    70  	if c := in.DeepCopy(); c != nil {
    71  		return c
    72  	}
    73  	return nil
    74  }
    75  
    76  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    77  func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) {
    78  	*out = *in
    79  	return
    80  }
    81  
    82  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes.
    83  func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes {
    84  	if in == nil {
    85  		return nil
    86  	}
    87  	out := new(NonResourceAttributes)
    88  	in.DeepCopyInto(out)
    89  	return out
    90  }
    91  
    92  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    93  func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule) {
    94  	*out = *in
    95  	if in.Verbs != nil {
    96  		in, out := &in.Verbs, &out.Verbs
    97  		*out = make([]string, len(*in))
    98  		copy(*out, *in)
    99  	}
   100  	if in.NonResourceURLs != nil {
   101  		in, out := &in.NonResourceURLs, &out.NonResourceURLs
   102  		*out = make([]string, len(*in))
   103  		copy(*out, *in)
   104  	}
   105  	return
   106  }
   107  
   108  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule.
   109  func (in *NonResourceRule) DeepCopy() *NonResourceRule {
   110  	if in == nil {
   111  		return nil
   112  	}
   113  	out := new(NonResourceRule)
   114  	in.DeepCopyInto(out)
   115  	return out
   116  }
   117  
   118  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   119  func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) {
   120  	*out = *in
   121  	return
   122  }
   123  
   124  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes.
   125  func (in *ResourceAttributes) DeepCopy() *ResourceAttributes {
   126  	if in == nil {
   127  		return nil
   128  	}
   129  	out := new(ResourceAttributes)
   130  	in.DeepCopyInto(out)
   131  	return out
   132  }
   133  
   134  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   135  func (in *ResourceRule) DeepCopyInto(out *ResourceRule) {
   136  	*out = *in
   137  	if in.Verbs != nil {
   138  		in, out := &in.Verbs, &out.Verbs
   139  		*out = make([]string, len(*in))
   140  		copy(*out, *in)
   141  	}
   142  	if in.APIGroups != nil {
   143  		in, out := &in.APIGroups, &out.APIGroups
   144  		*out = make([]string, len(*in))
   145  		copy(*out, *in)
   146  	}
   147  	if in.Resources != nil {
   148  		in, out := &in.Resources, &out.Resources
   149  		*out = make([]string, len(*in))
   150  		copy(*out, *in)
   151  	}
   152  	if in.ResourceNames != nil {
   153  		in, out := &in.ResourceNames, &out.ResourceNames
   154  		*out = make([]string, len(*in))
   155  		copy(*out, *in)
   156  	}
   157  	return
   158  }
   159  
   160  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule.
   161  func (in *ResourceRule) DeepCopy() *ResourceRule {
   162  	if in == nil {
   163  		return nil
   164  	}
   165  	out := new(ResourceRule)
   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 *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) {
   172  	*out = *in
   173  	out.TypeMeta = in.TypeMeta
   174  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   175  	in.Spec.DeepCopyInto(&out.Spec)
   176  	out.Status = in.Status
   177  	return
   178  }
   179  
   180  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview.
   181  func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview {
   182  	if in == nil {
   183  		return nil
   184  	}
   185  	out := new(SelfSubjectAccessReview)
   186  	in.DeepCopyInto(out)
   187  	return out
   188  }
   189  
   190  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   191  func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object {
   192  	if c := in.DeepCopy(); c != nil {
   193  		return c
   194  	}
   195  	return nil
   196  }
   197  
   198  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   199  func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) {
   200  	*out = *in
   201  	if in.ResourceAttributes != nil {
   202  		in, out := &in.ResourceAttributes, &out.ResourceAttributes
   203  		*out = new(ResourceAttributes)
   204  		**out = **in
   205  	}
   206  	if in.NonResourceAttributes != nil {
   207  		in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
   208  		*out = new(NonResourceAttributes)
   209  		**out = **in
   210  	}
   211  	return
   212  }
   213  
   214  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec.
   215  func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec {
   216  	if in == nil {
   217  		return nil
   218  	}
   219  	out := new(SelfSubjectAccessReviewSpec)
   220  	in.DeepCopyInto(out)
   221  	return out
   222  }
   223  
   224  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   225  func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) {
   226  	*out = *in
   227  	out.TypeMeta = in.TypeMeta
   228  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   229  	out.Spec = in.Spec
   230  	in.Status.DeepCopyInto(&out.Status)
   231  	return
   232  }
   233  
   234  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview.
   235  func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview {
   236  	if in == nil {
   237  		return nil
   238  	}
   239  	out := new(SelfSubjectRulesReview)
   240  	in.DeepCopyInto(out)
   241  	return out
   242  }
   243  
   244  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   245  func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object {
   246  	if c := in.DeepCopy(); c != nil {
   247  		return c
   248  	}
   249  	return nil
   250  }
   251  
   252  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   253  func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) {
   254  	*out = *in
   255  	return
   256  }
   257  
   258  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec.
   259  func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec {
   260  	if in == nil {
   261  		return nil
   262  	}
   263  	out := new(SelfSubjectRulesReviewSpec)
   264  	in.DeepCopyInto(out)
   265  	return out
   266  }
   267  
   268  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   269  func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) {
   270  	*out = *in
   271  	out.TypeMeta = in.TypeMeta
   272  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   273  	in.Spec.DeepCopyInto(&out.Spec)
   274  	out.Status = in.Status
   275  	return
   276  }
   277  
   278  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview.
   279  func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview {
   280  	if in == nil {
   281  		return nil
   282  	}
   283  	out := new(SubjectAccessReview)
   284  	in.DeepCopyInto(out)
   285  	return out
   286  }
   287  
   288  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   289  func (in *SubjectAccessReview) DeepCopyObject() runtime.Object {
   290  	if c := in.DeepCopy(); c != nil {
   291  		return c
   292  	}
   293  	return nil
   294  }
   295  
   296  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   297  func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) {
   298  	*out = *in
   299  	if in.ResourceAttributes != nil {
   300  		in, out := &in.ResourceAttributes, &out.ResourceAttributes
   301  		*out = new(ResourceAttributes)
   302  		**out = **in
   303  	}
   304  	if in.NonResourceAttributes != nil {
   305  		in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
   306  		*out = new(NonResourceAttributes)
   307  		**out = **in
   308  	}
   309  	if in.Groups != nil {
   310  		in, out := &in.Groups, &out.Groups
   311  		*out = make([]string, len(*in))
   312  		copy(*out, *in)
   313  	}
   314  	if in.Extra != nil {
   315  		in, out := &in.Extra, &out.Extra
   316  		*out = make(map[string]ExtraValue, len(*in))
   317  		for key, val := range *in {
   318  			var outVal []string
   319  			if val == nil {
   320  				(*out)[key] = nil
   321  			} else {
   322  				in, out := &val, &outVal
   323  				*out = make(ExtraValue, len(*in))
   324  				copy(*out, *in)
   325  			}
   326  			(*out)[key] = outVal
   327  		}
   328  	}
   329  	return
   330  }
   331  
   332  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec.
   333  func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec {
   334  	if in == nil {
   335  		return nil
   336  	}
   337  	out := new(SubjectAccessReviewSpec)
   338  	in.DeepCopyInto(out)
   339  	return out
   340  }
   341  
   342  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   343  func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) {
   344  	*out = *in
   345  	return
   346  }
   347  
   348  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus.
   349  func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus {
   350  	if in == nil {
   351  		return nil
   352  	}
   353  	out := new(SubjectAccessReviewStatus)
   354  	in.DeepCopyInto(out)
   355  	return out
   356  }
   357  
   358  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   359  func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) {
   360  	*out = *in
   361  	if in.ResourceRules != nil {
   362  		in, out := &in.ResourceRules, &out.ResourceRules
   363  		*out = make([]ResourceRule, len(*in))
   364  		for i := range *in {
   365  			(*in)[i].DeepCopyInto(&(*out)[i])
   366  		}
   367  	}
   368  	if in.NonResourceRules != nil {
   369  		in, out := &in.NonResourceRules, &out.NonResourceRules
   370  		*out = make([]NonResourceRule, len(*in))
   371  		for i := range *in {
   372  			(*in)[i].DeepCopyInto(&(*out)[i])
   373  		}
   374  	}
   375  	return
   376  }
   377  
   378  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus.
   379  func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus {
   380  	if in == nil {
   381  		return nil
   382  	}
   383  	out := new(SubjectRulesReviewStatus)
   384  	in.DeepCopyInto(out)
   385  	return out
   386  }
   387  

View as plain text