Documentation
¶
Index ¶
- Constants
- func Logout(ctx context.Context, rt clabruntime.ContainerRuntime, containerName string)
- func ProxyConfig(labName, longName, network, labDir string) *clabtypes.NodeConfig
- func Register(r *clabnodes.NodeRegistry)
- func SidecarName(parent string) string
- func WriteServeConfig(labDir string, nodes map[string]clabnodes.Node) error
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 ¶
SidecarName returns the topology name of the Tailscale sidecar for parent.
func WriteServeConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.