Documentation
¶
Overview ¶
Package supervisor orders the high-level MachineProxy startup sequence. It receives small runtime dependency interfaces from cmd/machineproxy, and feeds them in dependency order: backend, namespace, workspace FUSE, optional path stubs, broker, and child launcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendStarter ¶ added in v1.2.0
BackendStarter opens the remote connection (SSH dial, Docker attach, …). Kept as an interface so runtime wiring stays in main.
type Deps ¶
type Deps struct {
Backend BackendStarter
NS Namespace
FS WorkspaceFS
PathStubs PathStubs // optional
Broker Broker
Launcher Launcher
Log *slog.Logger
}
type PathStubs ¶ added in v1.1.0
PathStubs is optional. When provided it runs between the workspace FUSE mount and the broker start, building the read-only stub directory that fronts remote-PATH executables.
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func New ¶
func New(deps Deps) *Supervisor
type WorkspaceFS ¶
Click to show internal directories.
Click to hide internal directories.