remoteaccess

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTailscaleBinary = "tailscale"
	DefaultHTTPSPort       = 443
	DefaultTargetURL       = "http://127.0.0.1:43180"
)

Variables

This section is empty.

Functions

func Disable

func Disable(ctx context.Context, opts Options) error

func Enable

func Enable(ctx context.Context, opts Options) error

func Reconcile

func Reconcile(ctx context.Context, desired Desired, opts Options) error

Types

type Desired

type Desired struct {
	Enabled   bool
	HTTPSPort int
	TargetURL string
}

type ExecRunner

type ExecRunner struct{}

func (ExecRunner) Run

func (ExecRunner) Run(ctx context.Context, name string, args ...string) (string, string, error)

type Options

type Options struct {
	Binary    string
	Runner    Runner
	HTTPSPort int
	TargetURL string
}

type Runner

type Runner interface {
	Run(ctx context.Context, name string, args ...string) (stdout string, stderr string, err error)
}

type Status

type Status struct {
	Installed   bool   `json:"installed"`
	LoggedIn    bool   `json:"logged_in"`
	HostName    string `json:"host_name"`
	TailnetURL  string `json:"tailnet_url"`
	ServeActive bool   `json:"serve_active"`
	ServePort   int    `json:"serve_port"`
	OwnedByTARS bool   `json:"owned_by_tars"`
}

func Detect

func Detect(ctx context.Context, opts Options) (Status, error)

Jump to

Keyboard shortcuts

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