Documentation
¶
Overview ¶
Package exec is the Supervisor that runs real operating-system processes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
Supervisor starts and stops processes.
func (*Supervisor) Detach ¶
func (*Supervisor) Detach(spec *types.ProcessSpec) error
Detach starts spec in a new session and releases it. Where sessions are not available (Windows) it starts spec without one, so the process may still end with the caller's console. spec must not be nil.
func (*Supervisor) Start ¶
func (s *Supervisor) Start( ctx context.Context, spec *types.ProcessSpec, ready interfaces.Probe[interfaces.ProcessHandle], ) (interfaces.ProcessHandle, error)
Start starts spec and waits for ready. spec must not be nil.
Click to show internal directories.
Click to hide internal directories.