manager

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 27 Imported by: 0

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

func NewManager(conf *config.Config) Manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL