Documentation ¶
Index ¶
Constants ¶
View Source
const (
ProcessHeartBeatPeriodSeconds = 600
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { //init func Init() error //Start func Start() //get config GetConfig() *config.Config //heartbeat HeartBeat(heartbeat *types.HeartBeat) //Create process CreateProcess(processInfo *types.ProcessInfo) error //inspect process status info //processId = types.ProcessInfo.Id InspectProcessStatus(processId string) (*types.ProcessStatusInfo, error) //Stop process //processId = types.ProcessInfo.Id //process will be killed when timeout seconds StopProcess(processId string, timeout int) error //delete process //processId = types.ProcessInfo.Id DeleteProcess(processId string) error }
func NewManager ¶
Click to show internal directories.
Click to hide internal directories.