Documentation
¶
Index ¶
- Constants
- func Bootstrap(ctx context.Context, profile string, endpoint *link.Link) error
- func Connect(ctx context.Context, profile string) (link.Transport, error)
- func PrintHelp(stdout io.Writer) error
- func Run(args []string, config Options) (int, error)
- func RunCLI(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer, ...) (int, error)
- func RunContext(ctx context.Context, args []string, config Options) (int, error)
- func RunIdentity(ctx context.Context, args []string, stdout io.Writer) (int, error)
- func RunInstalledCommand(ctx context.Context, action string, args []string) error
- func RunLink(ctx context.Context, args []string, stdin *bufio.Reader, interactive bool, ...) error
- func RunMenu(ctx context.Context, input *bufio.Reader, output io.Writer) (string, error)
- type CLIHandlers
- type Options
- type Server
- type ServiceOptions
Constants ¶
const CLIUsage = `` /* 649-byte string literal not displayed */
const IdentityUsage = "" /* 154-byte string literal not displayed */
const LinkUsage = "Usage: sailry link <desktop pairing code> [--data-dir <profile>] [--pairing-service <HTTPS origin>]"
const ServiceUsage = "" /* 320-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect attaches a Client to the running Node's owner-only control socket. The control channel carries commands and subscriptions, not binary streams. Closing a controller never shuts down the Node or replays admitted work.
func RunCLI ¶
func RunCLI(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer, handlers CLIHandlers) (int, error)
RunCLI dispatches executor management commands.
func RunContext ¶
RunContext leaves cancellation and signal handling with the caller.
func RunIdentity ¶
RunIdentity uses the owner-only Host control transport and the same durable admission as remote controllers. Uncertain results include their original ID.
func RunInstalledCommand ¶
Types ¶
type CLIHandlers ¶
type ServiceOptions ¶
type ServiceOptions struct {
Profile string
Network link.NetworkScope
Bootstrap bool
Tray *bool
Telemetry *bool
// contains filtered or unexported fields
}
func ParseService ¶
func ParseService(args []string) (ServiceOptions, bool, error)
func (ServiceOptions) Environment ¶
func (options ServiceOptions) Environment(name string) string
Environment reads the process environment for the Node's telemetry. The `--telemetry off` choice answers as the environment opt-out; `on` adds nothing, so an environment opt-out and the saved preference keep precedence.