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 (s *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.
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.
Click to show internal directories.
Click to hide internal directories.