You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
971 B
37 lines
971 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by tailscale.com/cmd/cloner; DO NOT EDIT.
|
|
|
|
package ipnstate
|
|
|
|
import (
|
|
"net/netip"
|
|
|
|
"tailscale.com/tailcfg"
|
|
"tailscale.com/tka"
|
|
"tailscale.com/types/key"
|
|
)
|
|
|
|
// Clone makes a deep copy of TKAPeer.
|
|
// The result aliases no memory with the original.
|
|
func (src *TKAPeer) Clone() *TKAPeer {
|
|
if src == nil {
|
|
return nil
|
|
}
|
|
dst := new(TKAPeer)
|
|
*dst = *src
|
|
dst.TailscaleIPs = append(src.TailscaleIPs[:0:0], src.TailscaleIPs...)
|
|
dst.NodeKeySignature = *src.NodeKeySignature.Clone()
|
|
return dst
|
|
}
|
|
|
|
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
|
|
var _TKAPeerCloneNeedsRegeneration = TKAPeer(struct {
|
|
Name string
|
|
ID tailcfg.NodeID
|
|
StableID tailcfg.StableNodeID
|
|
TailscaleIPs []netip.Addr
|
|
NodeKey key.NodePublic
|
|
NodeKeySignature tka.NodeKeySignature
|
|
}{})
|
|
|