mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-29 08:46:33 -04:00
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>
37 lines
838 B
Go
37 lines
838 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ts_omit_tailnetlock
|
|
|
|
package ipnlocal
|
|
|
|
import (
|
|
"tailscale.com/ipn"
|
|
"tailscale.com/ipn/ipnstate"
|
|
"tailscale.com/tka"
|
|
"tailscale.com/types/netmap"
|
|
)
|
|
|
|
type tkaState struct {
|
|
authority *tka.Authority
|
|
}
|
|
|
|
func (b *LocalBackend) initTKALocked() error {
|
|
return nil
|
|
}
|
|
|
|
func (b *LocalBackend) tkaSyncIfNeeded(nm *netmap.NetworkMap, prefs ipn.PrefsView) error {
|
|
return nil
|
|
}
|
|
|
|
func (b *LocalBackend) tkaFilterNetmapLocked(nm *netmap.NetworkMap) {}
|
|
|
|
func (b *LocalBackend) TailnetLockStatus() *ipnstate.TailnetLockStatus {
|
|
return &ipnstate.TailnetLockStatus{Enabled: false}
|
|
}
|
|
|
|
// Deprecated: use [LocalBackend.TailnetLockStatus] instead.
|
|
func (b *LocalBackend) NetworkLockStatus() *ipnstate.TailnetLockStatus {
|
|
return b.TailnetLockStatus()
|
|
}
|