Documentation
¶
Index ¶
- type ProcessSupervisor
- func (s *ProcessSupervisor) Events(ctx context.Context) (<-chan model.Event, error)
- func (s *ProcessSupervisor) Exec(ctx context.Context, req *model.ExecRequest) error
- func (*ProcessSupervisor) Exit(ctx context.Context)
- func (s *ProcessSupervisor) Kill(ctx context.Context, req *model.KillRequest) error
- func (s *ProcessSupervisor) StopAll(ctx context.Context, deadline time.Time) error
- func (s *ProcessSupervisor) Terminate(ctx context.Context, req *model.TerminateRequest) error
- type ProcessSupervisorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessSupervisor ¶
type ProcessSupervisor struct {
// contains filtered or unexported fields
}
func NewProcessSupervisor ¶
func NewProcessSupervisor(opts ...ProcessSupervisorOption) *ProcessSupervisor
func (*ProcessSupervisor) Exec ¶
func (s *ProcessSupervisor) Exec(ctx context.Context, req *model.ExecRequest) error
func (*ProcessSupervisor) Exit ¶
func (*ProcessSupervisor) Exit(ctx context.Context)
func (*ProcessSupervisor) Kill ¶
func (s *ProcessSupervisor) Kill(ctx context.Context, req *model.KillRequest) error
func (*ProcessSupervisor) Terminate ¶
func (s *ProcessSupervisor) Terminate(ctx context.Context, req *model.TerminateRequest) error
type ProcessSupervisorOption ¶
type ProcessSupervisorOption func(ls *ProcessSupervisor)
func MsgLogFile ¶
func MsgLogFile(file *os.File) ProcessSupervisorOption
func WithLowerPriorities ¶
func WithLowerPriorities(lowerPriorities bool) ProcessSupervisorOption
func WithProcessCredential ¶
func WithProcessCredential(credential *syscall.Credential) ProcessSupervisorOption
Click to show internal directories.
Click to hide internal directories.