all: rename NetworkLock functions/types to TailnetLock
To avoid breaking downstream code, add deprecated aliases for all the old names. Updates tailscale/corp#37904 Change-Id: I86d0b0d7da371946440b181c665448f91c3ef8d2 Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
@@ -107,10 +107,10 @@ type TKAPeer struct {
|
||||
NodeKeySignature tka.NodeKeySignature
|
||||
}
|
||||
|
||||
// NetworkLockStatus represents whether tailnet-lock is enabled,
|
||||
// TailnetLockStatus represents whether tailnet-lock is enabled,
|
||||
// along with details about the locally-known state of the tailnet
|
||||
// key authority.
|
||||
type NetworkLockStatus struct {
|
||||
type TailnetLockStatus struct {
|
||||
// Enabled is true if tailnet lock is enabled.
|
||||
Enabled bool
|
||||
|
||||
@@ -151,8 +151,11 @@ type NetworkLockStatus struct {
|
||||
StateID uint64
|
||||
}
|
||||
|
||||
// NetworkLockUpdate describes a change to tailnet-lock state.
|
||||
type NetworkLockUpdate struct {
|
||||
// Deprecated: use [TailnetLockStatus] instead.
|
||||
type NetworkLockStatus = TailnetLockStatus
|
||||
|
||||
// TailnetLockUpdate describes a change to tailnet-lock state.
|
||||
type TailnetLockUpdate struct {
|
||||
Hash [32]byte
|
||||
Change string // values of tka.AUMKind.String()
|
||||
|
||||
@@ -161,6 +164,9 @@ type NetworkLockUpdate struct {
|
||||
Raw []byte
|
||||
}
|
||||
|
||||
// Deprecated: use [TailnetLockUpdate] instead.
|
||||
type NetworkLockUpdate = TailnetLockUpdate
|
||||
|
||||
// TailnetStatus is information about a Tailscale network ("tailnet").
|
||||
type TailnetStatus struct {
|
||||
// Name is the name of the network that's currently in use.
|
||||
|
||||
Reference in New Issue
Block a user