tailscale

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAuthURL

func ExtractAuthURL(output string) string

ExtractAuthURL scans output for a Tailscale login URL and returns it. Exported for testing.

func Status

func Status(machineName string) string

Status returns a brief status string from tailscale inside the VM. Uses the legacy podman.SSH call.

func StatusWithSSH added in v0.3.0

func StatusWithSSH(machineName string, sshFn SSHFunc) string

StatusWithSSH returns a brief status string using the provided SSH function.

func Up

func Up(machineName, hostname string) (string, error)

Up runs tailscale up inside the VM and returns the auth URL if one is printed. Uses the legacy podman.SSH call.

func UpWithSSH added in v0.3.0

func UpWithSSH(machineName, hostname string, sshFn SSHFunc) (string, error)

UpWithSSH runs tailscale up using the provided SSH function.

func WaitForDaemon

func WaitForDaemon(machineName string, timeout time.Duration) error

WaitForDaemon polls until the tailscaled container is running inside the VM. Uses the legacy podman.SSH call for backward compatibility.

func WaitForDaemonWithSSH added in v0.3.0

func WaitForDaemonWithSSH(machineName string, timeout time.Duration, sshFn SSHFunc) error

WaitForDaemonWithSSH polls until the tailscaled container is running, using the provided SSH function for provider-agnostic execution.

Types

type SSHFunc added in v0.3.0

type SSHFunc func(machineName, command string) (string, error)

SSHFunc is a function that executes a command on a remote machine.

Jump to

Keyboard shortcuts

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