supervisor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	StartBroker(ctx context.Context) error
}

type Deps

type Deps struct {
	SSH       SSH
	NS        Namespace
	FS        WorkspaceFS
	PathStubs PathStubs // optional
	Broker    Broker
	Launcher  Launcher
	Log       *slog.Logger
}

type Launcher

type Launcher interface {
	RunChild(ctx context.Context, cmd []string) error
}

type Namespace

type Namespace interface {
	EnterNamespace(ctx context.Context) error
}

type PathStubs added in v1.1.0

type PathStubs interface {
	BuildPathStubs(ctx context.Context) error
}

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 SSH

type SSH interface {
	StartSSH(ctx context.Context) error
}

type Supervisor

type Supervisor struct {
	// contains filtered or unexported fields
}

func New

func New(deps Deps) *Supervisor

func (*Supervisor) Run

func (s *Supervisor) Run(ctx context.Context, cmd []string) error

type WorkspaceFS

type WorkspaceFS interface {
	MountWorkspace(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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