headscale-operator/pkg/headscale/zz_generated.deepcopy.go
Guilhem Lettron 8f064a2890 Initial Commit 🎉
2022-06-23 16:15:33 +02:00

221 lines
5.8 KiB
Go

//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
Copyright 2022 Guilhem Lettron.
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.
*/
// Code generated by controller-gen. DO NOT EDIT.
package headscale
import ()
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CLIConfig) DeepCopyInto(out *CLIConfig) {
*out = *in
if in.Insecure != nil {
in, out := &in.Insecure, &out.Insecure
*out = new(bool)
**out = **in
}
out.Timeout = in.Timeout
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CLIConfig.
func (in *CLIConfig) DeepCopy() *CLIConfig {
if in == nil {
return nil
}
out := new(CLIConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Config) DeepCopyInto(out *Config) {
*out = *in
if in.GRPCAllowInsecure != nil {
in, out := &in.GRPCAllowInsecure, &out.GRPCAllowInsecure
*out = new(bool)
**out = **in
}
out.EphemeralNodeInactivityTimeout = in.EphemeralNodeInactivityTimeout
if in.IPPrefixes != nil {
in, out := &in.IPPrefixes, &out.IPPrefixes
*out = make([]string, len(*in))
copy(*out, *in)
}
in.DERP.DeepCopyInto(&out.DERP)
in.DNSConfig.DeepCopyInto(&out.DNSConfig)
in.OIDC.DeepCopyInto(&out.OIDC)
in.LogTail.DeepCopyInto(&out.LogTail)
in.CLI.DeepCopyInto(&out.CLI)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (in *Config) DeepCopy() *Config {
if in == nil {
return nil
}
out := new(Config)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DERPConfig) DeepCopyInto(out *DERPConfig) {
*out = *in
in.Server.DeepCopyInto(&out.Server)
if in.AutoUpdate != nil {
in, out := &in.AutoUpdate, &out.AutoUpdate
*out = new(bool)
**out = **in
}
if in.URLs != nil {
in, out := &in.URLs, &out.URLs
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Paths != nil {
in, out := &in.Paths, &out.Paths
*out = make([]string, len(*in))
copy(*out, *in)
}
out.UpdateFrequency = in.UpdateFrequency
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DERPConfig.
func (in *DERPConfig) DeepCopy() *DERPConfig {
if in == nil {
return nil
}
out := new(DERPConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DERPConfigServer) DeepCopyInto(out *DERPConfigServer) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DERPConfigServer.
func (in *DERPConfigServer) DeepCopy() *DERPConfigServer {
if in == nil {
return nil
}
out := new(DERPConfigServer)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DNSConfig) DeepCopyInto(out *DNSConfig) {
*out = *in
if in.Magic != nil {
in, out := &in.Magic, &out.Magic
*out = new(bool)
**out = **in
}
if in.Nameservers != nil {
in, out := &in.Nameservers, &out.Nameservers
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Domains != nil {
in, out := &in.Domains, &out.Domains
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSConfig.
func (in *DNSConfig) DeepCopy() *DNSConfig {
if in == nil {
return nil
}
out := new(DNSConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LogTailConfig) DeepCopyInto(out *LogTailConfig) {
*out = *in
if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled
*out = new(bool)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogTailConfig.
func (in *LogTailConfig) DeepCopy() *LogTailConfig {
if in == nil {
return nil
}
out := new(LogTailConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *OIDCConfig) DeepCopyInto(out *OIDCConfig) {
*out = *in
if in.Scope != nil {
in, out := &in.Scope, &out.Scope
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.ExtraParams != nil {
in, out := &in.ExtraParams, &out.ExtraParams
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.AllowedDomains != nil {
in, out := &in.AllowedDomains, &out.AllowedDomains
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.AllowedUsers != nil {
in, out := &in.AllowedUsers, &out.AllowedUsers
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.StripEmaildomain != nil {
in, out := &in.StripEmaildomain, &out.StripEmaildomain
*out = new(bool)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfig.
func (in *OIDCConfig) DeepCopy() *OIDCConfig {
if in == nil {
return nil
}
out := new(OIDCConfig)
in.DeepCopyInto(out)
return out
}