...

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

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

View as plain text