supervisor

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 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
	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 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