manager

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package manager xxx

Index

Constants

View Source
const (
	// ProcessHeartBeatPeriodSeconds xxx
	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()

	// GetConfig xxx
	// get config
	GetConfig() *config.Config

	// HeartBeat xxx
	// heartbeat
	HeartBeat(heartbeat *types.HeartBeat)

	// CreateProcess xxx
	// Create process
	CreateProcess(processInfo *types.ProcessInfo) error

	// InspectProcessStatus xxx
	// inspect process status info
	// processId = types.ProcessInfo.Id
	InspectProcessStatus(processId string) (*types.ProcessStatusInfo, error)

	// StopProcess xxx
	// Stop process
	// processId = types.ProcessInfo.Id
	// process will be killed when timeout seconds
	StopProcess(processId string, timeout int) error

	// DeleteProcess xxx
	// delete process
	// processId = types.ProcessInfo.Id
	DeleteProcess(processId string) error
}

Manager xxx

func NewManager

func NewManager(conf *config.Config) Manager

NewManager xxx

Jump to

Keyboard shortcuts

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