|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
// Code generated by tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Group,Role,Capability; DO NOT EDIT.
|
|
|
|
|
// Code generated by tailscale.com/cmd/cloner -type User,Node,Hostinfo,NetInfo,Group,Role,Capability,Login,DNSConfig; DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package tailcfg
|
|
|
|
|
|
|
|
|
@ -108,3 +108,27 @@ func (src *Capability) Clone() *Capability {
|
|
|
|
|
*dst = *src
|
|
|
|
|
return dst
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clone makes a deep copy of Login.
|
|
|
|
|
// The result aliases no memory with the original.
|
|
|
|
|
func (src *Login) Clone() *Login {
|
|
|
|
|
if src == nil {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
dst := new(Login)
|
|
|
|
|
*dst = *src
|
|
|
|
|
return dst
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clone makes a deep copy of DNSConfig.
|
|
|
|
|
// The result aliases no memory with the original.
|
|
|
|
|
func (src *DNSConfig) Clone() *DNSConfig {
|
|
|
|
|
if src == nil {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
dst := new(DNSConfig)
|
|
|
|
|
*dst = *src
|
|
|
|
|
dst.Nameservers = append(src.Nameservers[:0:0], src.Nameservers...)
|
|
|
|
|
dst.Domains = append(src.Domains[:0:0], src.Domains...)
|
|
|
|
|
return dst
|
|
|
|
|
}
|
|
|
|
|