Documentation ¶
Index ¶
Constants ¶
View Source
const (
CommandSystem = "core.system"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerProcess ¶
type PIDTable ¶
type PIDTable interface { //Register atomic registration of PID. MUST grantee that that no wait4 will happen //on any of the child process until the register operation is done. Register(g GetPID) error WaitPID(pid int) syscall.WaitStatus }
type ProcessFactory ¶
func NewInternalProcessFactory ¶
func NewInternalProcessFactory(runnable Runnable) ProcessFactory
internalProcessFactory factory to build Runnable processes
type ProcessStats ¶
type ProcessStats struct { CPU float64 `json:"cpu"` RSS uint64 `json:"rss"` VMS uint64 `json:"vms"` Swap uint64 `json:"swap"` Debug string `json:"debug,ommitempty"` }
ProcessStats holds process cpu and memory usage
type Runnable ¶
Runnable represents a runnable built in function that can be managed by the process manager.
type Stater ¶ added in v0.11.0
type Stater interface { Process Stats() *ProcessStats }
Click to show internal directories.
Click to hide internal directories.