Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(opts InstallOptions) error
Install performs a full tailkitd installation on the current node.
Steps (in order):
- Detect Docker and systemd
- Create system user (+ docker group membership if Docker present)
- Create directory layout
- Write skeleton config files (idempotent — skips existing files)
- Write /etc/tailkitd/env (idempotent)
- Copy binary to /usr/local/bin/tailkitd (atomic)
- Write systemd unit file
- Enable service (daemon-reload + systemctl enable)
- Run verify — abort if any error
- Start service and wait for READY
Types ¶
type InstallOptions ¶
type InstallOptions struct {
// AuthKey is the Tailscale auth key. Required.
AuthKey string
// Hostname overrides the node's Tailnet hostname.
// If empty, the system hostname is used.
Hostname string
}
InstallOptions holds the parameters for a full node installation.
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report is the full result of Verify().
func Verify ¶
func Verify() *Report
Verify runs all validation checks and returns a Report. It uses the existing Load*Config functions from internal/config so every check uses exactly the same logic tailkitd uses at startup. No writes are performed — safe to run at any time.
func (*Report) HasWarnings ¶
HasWarnings returns true if any check produced a warning.
Click to show internal directories.
Click to hide internal directories.