337 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			337 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Go
		
	
	
	
// +build !ignore_autogenerated
 | 
						|
 | 
						|
/*
 | 
						|
Copyright 2017 The Kubernetes Authors.
 | 
						|
 | 
						|
Licensed under the Apache License, Version 2.0 (the "License");
 | 
						|
you may not use this file except in compliance with the License.
 | 
						|
You may obtain a copy of the License at
 | 
						|
 | 
						|
    http://www.apache.org/licenses/LICENSE-2.0
 | 
						|
 | 
						|
Unless required by applicable law or agreed to in writing, software
 | 
						|
distributed under the License is distributed on an "AS IS" BASIS,
 | 
						|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
						|
See the License for the specific language governing permissions and
 | 
						|
limitations under the License.
 | 
						|
*/
 | 
						|
 | 
						|
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
 | 
						|
 | 
						|
package v1beta1
 | 
						|
 | 
						|
import (
 | 
						|
	v1 "k8s.io/api/authentication/v1"
 | 
						|
	meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
						|
	conversion "k8s.io/apimachinery/pkg/conversion"
 | 
						|
	runtime "k8s.io/apimachinery/pkg/runtime"
 | 
						|
	reflect "reflect"
 | 
						|
)
 | 
						|
 | 
						|
func init() {
 | 
						|
	SchemeBuilder.Register(RegisterDeepCopies)
 | 
						|
}
 | 
						|
 | 
						|
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
 | 
						|
// to allow building arbitrary schemes.
 | 
						|
//
 | 
						|
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
 | 
						|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
 | 
						|
	return scheme.AddGeneratedDeepCopyFuncs(
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*Event).DeepCopyInto(out.(*Event))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&Event{})},
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*EventList).DeepCopyInto(out.(*EventList))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&EventList{})},
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*GroupResources).DeepCopyInto(out.(*GroupResources))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&GroupResources{})},
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*ObjectReference).DeepCopyInto(out.(*ObjectReference))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&ObjectReference{})},
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*Policy).DeepCopyInto(out.(*Policy))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&Policy{})},
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*PolicyList).DeepCopyInto(out.(*PolicyList))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&PolicyList{})},
 | 
						|
		conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
 | 
						|
			in.(*PolicyRule).DeepCopyInto(out.(*PolicyRule))
 | 
						|
			return nil
 | 
						|
		}, InType: reflect.TypeOf(&PolicyRule{})},
 | 
						|
	)
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *Event) DeepCopyInto(out *Event) {
 | 
						|
	*out = *in
 | 
						|
	out.TypeMeta = in.TypeMeta
 | 
						|
	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
 | 
						|
	in.Timestamp.DeepCopyInto(&out.Timestamp)
 | 
						|
	in.User.DeepCopyInto(&out.User)
 | 
						|
	if in.ImpersonatedUser != nil {
 | 
						|
		in, out := &in.ImpersonatedUser, &out.ImpersonatedUser
 | 
						|
		if *in == nil {
 | 
						|
			*out = nil
 | 
						|
		} else {
 | 
						|
			*out = new(v1.UserInfo)
 | 
						|
			(*in).DeepCopyInto(*out)
 | 
						|
		}
 | 
						|
	}
 | 
						|
	if in.SourceIPs != nil {
 | 
						|
		in, out := &in.SourceIPs, &out.SourceIPs
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	if in.ObjectRef != nil {
 | 
						|
		in, out := &in.ObjectRef, &out.ObjectRef
 | 
						|
		if *in == nil {
 | 
						|
			*out = nil
 | 
						|
		} else {
 | 
						|
			*out = new(ObjectReference)
 | 
						|
			**out = **in
 | 
						|
		}
 | 
						|
	}
 | 
						|
	if in.ResponseStatus != nil {
 | 
						|
		in, out := &in.ResponseStatus, &out.ResponseStatus
 | 
						|
		if *in == nil {
 | 
						|
			*out = nil
 | 
						|
		} else {
 | 
						|
			*out = new(meta_v1.Status)
 | 
						|
			(*in).DeepCopyInto(*out)
 | 
						|
		}
 | 
						|
	}
 | 
						|
	if in.RequestObject != nil {
 | 
						|
		in, out := &in.RequestObject, &out.RequestObject
 | 
						|
		if *in == nil {
 | 
						|
			*out = nil
 | 
						|
		} else {
 | 
						|
			*out = new(runtime.Unknown)
 | 
						|
			(*in).DeepCopyInto(*out)
 | 
						|
		}
 | 
						|
	}
 | 
						|
	if in.ResponseObject != nil {
 | 
						|
		in, out := &in.ResponseObject, &out.ResponseObject
 | 
						|
		if *in == nil {
 | 
						|
			*out = nil
 | 
						|
		} else {
 | 
						|
			*out = new(runtime.Unknown)
 | 
						|
			(*in).DeepCopyInto(*out)
 | 
						|
		}
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
 | 
						|
func (in *Event) DeepCopy() *Event {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(Event)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
 | 
						|
func (in *Event) DeepCopyObject() runtime.Object {
 | 
						|
	if c := in.DeepCopy(); c != nil {
 | 
						|
		return c
 | 
						|
	} else {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *EventList) DeepCopyInto(out *EventList) {
 | 
						|
	*out = *in
 | 
						|
	out.TypeMeta = in.TypeMeta
 | 
						|
	out.ListMeta = in.ListMeta
 | 
						|
	if in.Items != nil {
 | 
						|
		in, out := &in.Items, &out.Items
 | 
						|
		*out = make([]Event, len(*in))
 | 
						|
		for i := range *in {
 | 
						|
			(*in)[i].DeepCopyInto(&(*out)[i])
 | 
						|
		}
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
 | 
						|
func (in *EventList) DeepCopy() *EventList {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(EventList)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
 | 
						|
func (in *EventList) DeepCopyObject() runtime.Object {
 | 
						|
	if c := in.DeepCopy(); c != nil {
 | 
						|
		return c
 | 
						|
	} else {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *GroupResources) DeepCopyInto(out *GroupResources) {
 | 
						|
	*out = *in
 | 
						|
	if in.Resources != nil {
 | 
						|
		in, out := &in.Resources, &out.Resources
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
 | 
						|
func (in *GroupResources) DeepCopy() *GroupResources {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(GroupResources)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
 | 
						|
	*out = *in
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
 | 
						|
func (in *ObjectReference) DeepCopy() *ObjectReference {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(ObjectReference)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *Policy) DeepCopyInto(out *Policy) {
 | 
						|
	*out = *in
 | 
						|
	out.TypeMeta = in.TypeMeta
 | 
						|
	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
 | 
						|
	if in.Rules != nil {
 | 
						|
		in, out := &in.Rules, &out.Rules
 | 
						|
		*out = make([]PolicyRule, len(*in))
 | 
						|
		for i := range *in {
 | 
						|
			(*in)[i].DeepCopyInto(&(*out)[i])
 | 
						|
		}
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
 | 
						|
func (in *Policy) DeepCopy() *Policy {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(Policy)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
 | 
						|
func (in *Policy) DeepCopyObject() runtime.Object {
 | 
						|
	if c := in.DeepCopy(); c != nil {
 | 
						|
		return c
 | 
						|
	} else {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *PolicyList) DeepCopyInto(out *PolicyList) {
 | 
						|
	*out = *in
 | 
						|
	out.TypeMeta = in.TypeMeta
 | 
						|
	out.ListMeta = in.ListMeta
 | 
						|
	if in.Items != nil {
 | 
						|
		in, out := &in.Items, &out.Items
 | 
						|
		*out = make([]Policy, len(*in))
 | 
						|
		for i := range *in {
 | 
						|
			(*in)[i].DeepCopyInto(&(*out)[i])
 | 
						|
		}
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
 | 
						|
func (in *PolicyList) DeepCopy() *PolicyList {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(PolicyList)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
 | 
						|
func (in *PolicyList) DeepCopyObject() runtime.Object {
 | 
						|
	if c := in.DeepCopy(); c != nil {
 | 
						|
		return c
 | 
						|
	} else {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
 | 
						|
func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
 | 
						|
	*out = *in
 | 
						|
	if in.Users != nil {
 | 
						|
		in, out := &in.Users, &out.Users
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	if in.UserGroups != nil {
 | 
						|
		in, out := &in.UserGroups, &out.UserGroups
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	if in.Verbs != nil {
 | 
						|
		in, out := &in.Verbs, &out.Verbs
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	if in.Resources != nil {
 | 
						|
		in, out := &in.Resources, &out.Resources
 | 
						|
		*out = make([]GroupResources, len(*in))
 | 
						|
		for i := range *in {
 | 
						|
			(*in)[i].DeepCopyInto(&(*out)[i])
 | 
						|
		}
 | 
						|
	}
 | 
						|
	if in.Namespaces != nil {
 | 
						|
		in, out := &in.Namespaces, &out.Namespaces
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	if in.NonResourceURLs != nil {
 | 
						|
		in, out := &in.NonResourceURLs, &out.NonResourceURLs
 | 
						|
		*out = make([]string, len(*in))
 | 
						|
		copy(*out, *in)
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
 | 
						|
func (in *PolicyRule) DeepCopy() *PolicyRule {
 | 
						|
	if in == nil {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	out := new(PolicyRule)
 | 
						|
	in.DeepCopyInto(out)
 | 
						|
	return out
 | 
						|
}
 |