373 lines
10 KiB
Go
373 lines
10 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 audit
|
|
|
|
import (
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
reflect "reflect"
|
|
)
|
|
|
|
// GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
|
|
//
|
|
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
|
|
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
|
|
return []conversion.GeneratedDeepCopyFunc{
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*Event).DeepCopyInto(out.(*Event))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&Event{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*EventList).DeepCopyInto(out.(*EventList))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&EventList{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*GroupResources).DeepCopyInto(out.(*GroupResources))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&GroupResources{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*ObjectReference).DeepCopyInto(out.(*ObjectReference))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&ObjectReference{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*Policy).DeepCopyInto(out.(*Policy))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&Policy{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*PolicyList).DeepCopyInto(out.(*PolicyList))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&PolicyList{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*PolicyRule).DeepCopyInto(out.(*PolicyRule))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&PolicyRule{})},
|
|
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
in.(*UserInfo).DeepCopyInto(out.(*UserInfo))
|
|
return nil
|
|
}, InType: reflect.TypeOf(&UserInfo{})},
|
|
}
|
|
}
|
|
|
|
// 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(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(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)
|
|
}
|
|
if in.ResourceNames != nil {
|
|
in, out := &in.ResourceNames, &out.ResourceNames
|
|
*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)
|
|
}
|
|
if in.OmitStages != nil {
|
|
in, out := &in.OmitStages, &out.OmitStages
|
|
*out = make([]Stage, 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
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *UserInfo) DeepCopyInto(out *UserInfo) {
|
|
*out = *in
|
|
if in.Groups != nil {
|
|
in, out := &in.Groups, &out.Groups
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.Extra != nil {
|
|
in, out := &in.Extra, &out.Extra
|
|
*out = make(map[string]ExtraValue, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = make(ExtraValue, len(val))
|
|
copy((*out)[key], val)
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
|
|
func (in *UserInfo) DeepCopy() *UserInfo {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(UserInfo)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|