Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Config *config.Config Store storage.Storage // Bin is the OCIS single binary name. Bin string // BinPath is the OCIS single binary path withing the host machine. // The Controller needs to know the binary location in order to spawn new extensions. BinPath string // Terminated facilitates communication from Watcher <-> Controller. Writes to this // channel WILL always attempt to restart the crashed process. Terminated chan process.ProcEntry // contains filtered or unexported fields }
Controller supervises processes.
func NewController ¶
func NewController(o ...Option) Controller
NewController initializes a new controller.
func (*Controller) Kill ¶
func (c *Controller) Kill(pe process.ProcEntry) error
Kill a managed process. Should a process managed by the runtime be allowed to be killed if the runtime is configured not to?
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown(ch chan struct{}) error
Shutdown a running runtime.
Click to show internal directories.
Click to hide internal directories.