Versions in this module Expand all Collapse all v0 v0.71.0 Nov 25, 2026 v0.70.0 Nov 21, 2026 v0.69.0 Nov 19, 2026 v0.68.0 Nov 19, 2026 v0.67.0 Nov 19, 2026 v0.66.0 Nov 18, 2026 v0.65.0 Nov 18, 2026 v0.64.0 Nov 17, 2026 v0.63.0 Nov 16, 2026 v0.62.0 Nov 16, 2026 Changes in this version + const DefaultPort + const MCPPath + const ServiceLabel + const ServiceUnit + var ErrNoService = errors.New("f10 remote install supports macOS (launchd) and Linux (systemd)") + var Scopes = []Scope + var ServiceEnv = []string + func Allows(scopes []Scope) func(procedure string) bool + func Auth(store *Store, next http.Handler) http.Handler + func Dir() (string, error) + func InTailnet(ip netip.Addr) bool + func Procedures(tok Token) []string + func Route(api, app http.Handler) http.Handler + func ScopeList() string + func TailnetAddr(ifaces func() ([]Iface, error)) (netip.Addr, bool) + func WriteConfig(dir string, c Config) error + type Certs struct + CLI func() string + Dir string + Now func() time.Time + Run Runner + Wait bool + func (c *Certs) Config() (*tls.Config, string, string) + type Config struct + Enabled bool + MCP bool + Port int + func ReadConfig(dir string) (Config, error) + func (c Config) ListenPort() int + type Iface struct + Addrs []net.Addr + Name string + func Interfaces() ([]Iface, error) + type Listener struct + App http.Handler + Certs *Certs + Dir string + Ifaces func() ([]Iface, error) + Peer func(netip.Addr) bool + Version string + func (l *Listener) Addr() (string, bool, string) + func (l *Listener) Handler(h http.Handler) http.Handler + func (l *Listener) Listen(ln net.Listener) net.Listener + func (l *Listener) TLS() (*tls.Config, string, string) + type Runner func(ctx context.Context, name string, args ...string) ([]byte, error) + type Scope string + const ScopeAnswer + const ScopeFinish + const ScopeRead + const ScopeStart + const ScopeSteer + func ParseScopes(values []string) ([]Scope, error) + type Service struct + Drain func(ctx context.Context) error + Env []string + GOOS string + Home string + Log string + Program string + Run func(ctx context.Context, name string, args ...string) error + UID int + func (s *Service) Describe() string + func (s *Service) Install(ctx context.Context) error + func (s *Service) InstalledProgram() (string, bool) + func (s *Service) Path() (string, error) + func (s *Service) Render() (string, error) + func (s *Service) Supported() bool + func (s *Service) Uninstall(ctx context.Context) (bool, error) + type Store struct + Path string + func NewStore(dir string) *Store + func (s *Store) Add(name string, scopes []Scope, now time.Time) (string, error) + func (s *Store) List() ([]Token, error) + func (s *Store) Revoke(name string) (bool, error) + func (s *Store) Verify(secret string) (Token, bool) + type Token struct + Created time.Time + Hash string + Name string + Scopes []Scope + func (t Token) Has(scope Scope) bool