From 94b2b6393f2559724cd74ec84de51c0601634669 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 12 Feb 2020 15:40:06 +0100 Subject: [PATCH] Add missing generated element for UDP. --- pkg/config/dynamic/zz_generated.deepcopy.go | 179 ++++++++++++++++++++ 1 file changed, 179 insertions(+) diff --git a/pkg/config/dynamic/zz_generated.deepcopy.go b/pkg/config/dynamic/zz_generated.deepcopy.go index fa544c396..e5ecb79b7 100644 --- a/pkg/config/dynamic/zz_generated.deepcopy.go +++ b/pkg/config/dynamic/zz_generated.deepcopy.go @@ -204,6 +204,11 @@ func (in *Configuration) DeepCopyInto(out *Configuration) { *out = new(TCPConfiguration) (*in).DeepCopyInto(*out) } + if in.UDP != nil { + in, out := &in.UDP, &out.UDP + *out = new(UDPConfiguration) + (*in).DeepCopyInto(*out) + } if in.TLS != nil { in, out := &in.TLS, &out.TLS *out = new(TLSConfiguration) @@ -1404,6 +1409,180 @@ func (in *TLSConfiguration) DeepCopy() *TLSConfiguration { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPConfiguration) DeepCopyInto(out *UDPConfiguration) { + *out = *in + if in.Routers != nil { + in, out := &in.Routers, &out.Routers + *out = make(map[string]*UDPRouter, len(*in)) + for key, val := range *in { + var outVal *UDPRouter + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UDPRouter) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal + } + } + if in.Services != nil { + in, out := &in.Services, &out.Services + *out = make(map[string]*UDPService, len(*in)) + for key, val := range *in { + var outVal *UDPService + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UDPService) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPConfiguration. +func (in *UDPConfiguration) DeepCopy() *UDPConfiguration { + if in == nil { + return nil + } + out := new(UDPConfiguration) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPRouter) DeepCopyInto(out *UDPRouter) { + *out = *in + if in.EntryPoints != nil { + in, out := &in.EntryPoints, &out.EntryPoints + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPRouter. +func (in *UDPRouter) DeepCopy() *UDPRouter { + if in == nil { + return nil + } + out := new(UDPRouter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPServer) DeepCopyInto(out *UDPServer) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPServer. +func (in *UDPServer) DeepCopy() *UDPServer { + if in == nil { + return nil + } + out := new(UDPServer) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPServersLoadBalancer) DeepCopyInto(out *UDPServersLoadBalancer) { + *out = *in + if in.Servers != nil { + in, out := &in.Servers, &out.Servers + *out = make([]UDPServer, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPServersLoadBalancer. +func (in *UDPServersLoadBalancer) DeepCopy() *UDPServersLoadBalancer { + if in == nil { + return nil + } + out := new(UDPServersLoadBalancer) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPService) DeepCopyInto(out *UDPService) { + *out = *in + if in.LoadBalancer != nil { + in, out := &in.LoadBalancer, &out.LoadBalancer + *out = new(UDPServersLoadBalancer) + (*in).DeepCopyInto(*out) + } + if in.Weighted != nil { + in, out := &in.Weighted, &out.Weighted + *out = new(UDPWeightedRoundRobin) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPService. +func (in *UDPService) DeepCopy() *UDPService { + if in == nil { + return nil + } + out := new(UDPService) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPWRRService) DeepCopyInto(out *UDPWRRService) { + *out = *in + if in.Weight != nil { + in, out := &in.Weight, &out.Weight + *out = new(int) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPWRRService. +func (in *UDPWRRService) DeepCopy() *UDPWRRService { + if in == nil { + return nil + } + out := new(UDPWRRService) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UDPWeightedRoundRobin) DeepCopyInto(out *UDPWeightedRoundRobin) { + *out = *in + if in.Services != nil { + in, out := &in.Services, &out.Services + *out = make([]UDPWRRService, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPWeightedRoundRobin. +func (in *UDPWeightedRoundRobin) DeepCopy() *UDPWeightedRoundRobin { + if in == nil { + return nil + } + out := new(UDPWeightedRoundRobin) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in Users) DeepCopyInto(out *Users) { {