tailscale

package
v0.80.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyName = "ts"
	ToolType  = "tailscale"
	ServeFile = "serve.json"
)
View Source
const (
	KindName     = "tailscale"
	DefaultImage = "tailscale/tailscale:stable"
	ParentLabel  = "clab-tailscale-parent"
)

Variables

This section is empty.

Functions

func Logout

func Logout(ctx context.Context, rt clabruntime.ContainerRuntime, containerName string)

Logout disconnects a Tailscale container before deletion. Ephemeral nodes are also removed from the tailnet. Failures are logged so container cleanup can continue.

func ProxyConfig

func ProxyConfig(labName, longName, network, labDir string) *clabtypes.NodeConfig

func Register

func Register(r *clabnodes.NodeRegistry)

Register registers the node in the NodeRegistry.

func SidecarName

func SidecarName(parent string) string

SidecarName returns the topology name of the Tailscale sidecar for parent.

func WriteServeConfig

func WriteServeConfig(labDir string, nodes map[string]clabnodes.Node) error

WriteServeConfig writes the proxy Serve config for the /ts ports of nodes into labDir. The file is replaced atomically because containerboot reloads it on every change and exits if it reads a partial file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL