update generated deepcopy code

Kubernetes-commit: a1c880ece3574a2c7170e0d040489d56dd912e08
This commit is contained in:
supereagle 2017-07-31 22:33:00 +08:00 committed by Kubernetes Publisher
parent 713755562e
commit 2faadf8c85
10 changed files with 222 additions and 207 deletions

View File

@ -26,13 +26,14 @@ import (
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// 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 {
@ -60,19 +61,19 @@ func (in *AdmissionConfiguration) DeepCopyInto(out *AdmissionConfiguration) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (x *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (in *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if in == nil {
return nil
}
out := new(AdmissionConfiguration)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -86,12 +87,12 @@ func (in *AdmissionPluginConfiguration) DeepCopyInto(out *AdmissionPluginConfigu
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (x *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (in *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if in == nil {
return nil
}
out := new(AdmissionPluginConfiguration)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}

View File

@ -26,13 +26,14 @@ import (
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// 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 {
@ -60,19 +61,19 @@ func (in *AdmissionConfiguration) DeepCopyInto(out *AdmissionConfiguration) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (x *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (in *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if in == nil {
return nil
}
out := new(AdmissionConfiguration)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -90,12 +91,12 @@ func (in *AdmissionPluginConfiguration) DeepCopyInto(out *AdmissionPluginConfigu
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (x *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (in *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if in == nil {
return nil
}
out := new(AdmissionPluginConfiguration)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}

View File

@ -28,13 +28,14 @@ import (
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// 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 {
@ -128,19 +129,19 @@ func (in *Event) DeepCopyInto(out *Event) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (x *Event) DeepCopy() *Event {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Event) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Event) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -162,19 +163,19 @@ func (in *EventList) DeepCopyInto(out *EventList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
func (x *EventList) DeepCopy() *EventList {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *EventList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *EventList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -192,13 +193,13 @@ func (in *GroupResources) DeepCopyInto(out *GroupResources) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
func (x *GroupResources) DeepCopy() *GroupResources {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -208,13 +209,13 @@ func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (x *ObjectReference) DeepCopy() *ObjectReference {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -233,19 +234,19 @@ func (in *Policy) DeepCopyInto(out *Policy) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Policy) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -267,19 +268,19 @@ func (in *PolicyList) DeepCopyInto(out *PolicyList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (x *PolicyList) DeepCopy() *PolicyList {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PolicyList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *PolicyList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -324,12 +325,12 @@ func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
func (x *PolicyRule) DeepCopy() *PolicyRule {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}

View File

@ -27,7 +27,9 @@ import (
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
// 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 {
@ -125,19 +127,19 @@ func (in *Event) DeepCopyInto(out *Event) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (x *Event) DeepCopy() *Event {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Event) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Event) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -159,19 +161,19 @@ func (in *EventList) DeepCopyInto(out *EventList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new EventList.
func (x *EventList) DeepCopy() *EventList {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *EventList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *EventList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -189,13 +191,13 @@ func (in *GroupResources) DeepCopyInto(out *GroupResources) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources.
func (x *GroupResources) DeepCopy() *GroupResources {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -205,13 +207,13 @@ func (in *ObjectReference) DeepCopyInto(out *ObjectReference) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (x *ObjectReference) DeepCopy() *ObjectReference {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -230,19 +232,19 @@ func (in *Policy) DeepCopyInto(out *Policy) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Policy) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -264,19 +266,19 @@ func (in *PolicyList) DeepCopyInto(out *PolicyList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (x *PolicyList) DeepCopy() *PolicyList {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PolicyList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *PolicyList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -321,13 +323,13 @@ func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
func (x *PolicyRule) DeepCopy() *PolicyRule {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -350,12 +352,12 @@ func (in *UserInfo) DeepCopyInto(out *UserInfo) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
func (x *UserInfo) DeepCopy() *UserInfo {
if x == nil {
// 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)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}

View File

@ -27,13 +27,14 @@ import (
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// 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 {
@ -69,19 +70,19 @@ func (in *Pod) DeepCopyInto(out *Pod) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (x *Pod) DeepCopy() *Pod {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (in *Pod) DeepCopy() *Pod {
if in == nil {
return nil
}
out := new(Pod)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Pod) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Pod) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -96,13 +97,13 @@ func (in *PodCondition) DeepCopyInto(out *PodCondition) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition.
func (x *PodCondition) DeepCopy() *PodCondition {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition.
func (in *PodCondition) DeepCopy() *PodCondition {
if in == nil {
return nil
}
out := new(PodCondition)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -121,19 +122,19 @@ func (in *PodList) DeepCopyInto(out *PodList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (x *PodList) DeepCopy() *PodList {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (in *PodList) DeepCopy() *PodList {
if in == nil {
return nil
}
out := new(PodList)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *PodList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -171,13 +172,13 @@ func (in *PodSpec) DeepCopyInto(out *PodSpec) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func (x *PodSpec) DeepCopy() *PodSpec {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func (in *PodSpec) DeepCopy() *PodSpec {
if in == nil {
return nil
}
out := new(PodSpec)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -203,12 +204,12 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (x *PodStatus) DeepCopy() *PodStatus {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (in *PodStatus) DeepCopy() *PodStatus {
if in == nil {
return nil
}
out := new(PodStatus)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}

View File

@ -27,13 +27,14 @@ import (
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// 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 {
@ -69,19 +70,19 @@ func (in *Pod) DeepCopyInto(out *Pod) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (x *Pod) DeepCopy() *Pod {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (in *Pod) DeepCopy() *Pod {
if in == nil {
return nil
}
out := new(Pod)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Pod) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Pod) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -96,13 +97,13 @@ func (in *PodCondition) DeepCopyInto(out *PodCondition) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition.
func (x *PodCondition) DeepCopy() *PodCondition {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition.
func (in *PodCondition) DeepCopy() *PodCondition {
if in == nil {
return nil
}
out := new(PodCondition)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -121,19 +122,19 @@ func (in *PodList) DeepCopyInto(out *PodList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (x *PodList) DeepCopy() *PodList {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (in *PodList) DeepCopy() *PodList {
if in == nil {
return nil
}
out := new(PodList)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *PodList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -171,13 +172,13 @@ func (in *PodSpec) DeepCopyInto(out *PodSpec) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func (x *PodSpec) DeepCopy() *PodSpec {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func (in *PodSpec) DeepCopy() *PodSpec {
if in == nil {
return nil
}
out := new(PodSpec)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
@ -203,12 +204,12 @@ func (in *PodStatus) DeepCopyInto(out *PodStatus) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (x *PodStatus) DeepCopy() *PodStatus {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (in *PodStatus) DeepCopy() *PodStatus {
if in == nil {
return nil
}
out := new(PodStatus)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}

View File

@ -26,7 +26,9 @@ import (
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
// 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 {
@ -42,19 +44,19 @@ func (in *TestType) DeepCopyInto(out *TestType) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestType.
func (x *TestType) DeepCopy() *TestType {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType.
func (in *TestType) DeepCopy() *TestType {
if in == nil {
return nil
}
out := new(TestType)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestType) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *TestType) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil

View File

@ -26,7 +26,9 @@ import (
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
// 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 {
@ -67,19 +69,19 @@ func (in *Simple) DeepCopyInto(out *Simple) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Simple.
func (x *Simple) DeepCopy() *Simple {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Simple.
func (in *Simple) DeepCopy() *Simple {
if in == nil {
return nil
}
out := new(Simple)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Simple) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *Simple) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -93,19 +95,19 @@ func (in *SimpleGetOptions) DeepCopyInto(out *SimpleGetOptions) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleGetOptions.
func (x *SimpleGetOptions) DeepCopy() *SimpleGetOptions {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleGetOptions.
func (in *SimpleGetOptions) DeepCopy() *SimpleGetOptions {
if in == nil {
return nil
}
out := new(SimpleGetOptions)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleGetOptions) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *SimpleGetOptions) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -127,19 +129,19 @@ func (in *SimpleList) DeepCopyInto(out *SimpleList) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleList.
func (x *SimpleList) DeepCopy() *SimpleList {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleList.
func (in *SimpleList) DeepCopy() *SimpleList {
if in == nil {
return nil
}
out := new(SimpleList)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *SimpleList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -161,19 +163,19 @@ func (in *SimpleRoot) DeepCopyInto(out *SimpleRoot) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleRoot.
func (x *SimpleRoot) DeepCopy() *SimpleRoot {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleRoot.
func (in *SimpleRoot) DeepCopy() *SimpleRoot {
if in == nil {
return nil
}
out := new(SimpleRoot)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleRoot) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *SimpleRoot) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
@ -195,19 +197,19 @@ func (in *SimpleXGSubresource) DeepCopyInto(out *SimpleXGSubresource) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SimpleXGSubresource.
func (x *SimpleXGSubresource) DeepCopy() *SimpleXGSubresource {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleXGSubresource.
func (in *SimpleXGSubresource) DeepCopy() *SimpleXGSubresource {
if in == nil {
return nil
}
out := new(SimpleXGSubresource)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SimpleXGSubresource) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *SimpleXGSubresource) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil

View File

@ -26,7 +26,9 @@ import (
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
// 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 {
@ -47,19 +49,19 @@ func (in *ConnectRequest) DeepCopyInto(out *ConnectRequest) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ConnectRequest.
func (x *ConnectRequest) DeepCopy() *ConnectRequest {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectRequest.
func (in *ConnectRequest) DeepCopy() *ConnectRequest {
if in == nil {
return nil
}
out := new(ConnectRequest)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ConnectRequest) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *ConnectRequest) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil

View File

@ -26,7 +26,9 @@ import (
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
// 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 {
@ -44,19 +46,19 @@ func (in *TestResource) DeepCopyInto(out *TestResource) {
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestResource.
func (x *TestResource) DeepCopy() *TestResource {
if x == nil {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResource.
func (in *TestResource) DeepCopy() *TestResource {
if in == nil {
return nil
}
out := new(TestResource)
x.DeepCopyInto(out)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestResource) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
func (in *TestResource) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil