package
5.0.0+incompatible
Repository: https://github.com/qwenode/tailscale.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package ipnstate captures the entire state of the Tailscale network.
Package localapi contains the HTTP server handlers for tailscaled's API server.
Package policy contains various policy decisions that need to be shared between the node client & control server.
Package store provides various implementation of ipn.StateStore.

# Functions

IPCVersion returns version.Long usually, unless TS_DEBUG_FAKE_IPC_VERSION is set, in which it contains that value.
IsLoginServerSynonym reports whether a URL is a drop-in replacement for the primary Tailscale login server.
IsReadonlyContext reports whether ctx is a read-only context, as currently used by Unix non-root users running the "tailscale" CLI command.
LoadPrefs loads a legacy relaynode config file into Prefs with sensible migration defaults set.
No description provided by the author
NewBackendServer creates a new BackendServer using b.
No description provided by the author
NewPrefs returns the default preferences to use.
PrefsFromBytes deserializes Prefs from a JSON blob.
TODO(apenwarr): incremental json decode? That would let us avoid storing the whole byte array uselessly in RAM.
ReadonlyContextOf returns ctx wrapped with a context value that will make IsReadonlyContext reports true.
No description provided by the author
No description provided by the author

# Constants

DefaultControlURL is the URL base of the control plane ("coordination server") for use when no explicit one is configured.
ErrMsgPermissionDenied is the Notify.ErrMessage value used an operation was done from a user/context that didn't have permission.
GlobalDaemonStateKey is the ipn.StateKey that tailscaled loads on startup.
GoogleIDToken Type is the tailcfg.Oauth2Token.TokenType for the Google ID tokens used by the Android client.
No description provided by the author
MachineKeyStateKey is the key under which we store the machine key, in its key.NodePrivate.MarshalText representation.
MaxMessageSize is the maximum message size, in bytes.
No description provided by the author
No description provided by the author
NLKeyStateKey is the key under which we store the nodes' network-lock node key, in its key.NLPrivate.MarshalText representation.
No description provided by the author
No description provided by the author
ServerModeStartKey's value, if non-empty, is the value of a StateKey containing the prefs to start with which to start the server.
No description provided by the author
No description provided by the author

# Variables

ErrExitNodeIDAlreadySet is returned from (*Prefs).SetExitNodeIP when the Prefs.ExitNodeID field is already set.
ErrStateNotExist is returned by StateStore.ReadState when the requested state ID doesn't exist.

# Structs

No description provided by the author
No description provided by the author
Command is a command message that is JSON encoded and sent by a frontend to a backend.
EngineStatus contains WireGuard engine stats.
ExitNodeLocalIPError is returned when the requested IP address for an exit node belongs to the local machine.
No description provided by the author
MaskedPrefs is a Prefs with an associated bitmask of which fields are set.
No description provided by the author
Notify is a communication from a backend (e.g.
No description provided by the author
PartialFile represents an in-progress file transfer.
Prefs are the user modifiable settings of the Tailscale node agent.
No description provided by the author
No description provided by the author

# Interfaces

Backend is the interface between Tailscale frontends (e.g.
StateStore persists state, and produces it back on request.

# Type aliases

No description provided by the author
StateKey is an opaque identifier for a set of LocalBackend state (preferences, private keys, etc.).