Documentation
¶
Overview ¶
Package local runs the node's own `tailscale` CLI for read-only tools (spec §18).
Contract: absolute binary, fixed argv built by the tools, no shell, a built (not inherited) environment, working directory "/", stdin closed, capped output, the whole process group killed on timeout (on Windows, the CLI process itself), a bounded wait for output after exit, and a call-rate bucket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binary ¶
Binary is a discovered tailscale CLI.
func Candidates ¶
Candidates lists the default search order for goos.
type Result ¶
type Result struct {
Stdout []byte
Stderr string
Exit int
Duration time.Duration
Warnings []string // e.g. CLI/daemon version skew reported on stderr
}
Result is the outcome of one CLI call.
type Runner ¶
type Runner struct {
Bin Binary
Socket string // optional --socket
Home string
MaxStdout int // default 4 MiB
PerMinute int // default 30
Now func() time.Time
// contains filtered or unexported fields
}
Runner executes the CLI.
Click to show internal directories.
Click to hide internal directories.