Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSystemdDir = "/etc/systemd/system"
DefaultSystemdDir ...
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Dir string `json:"dir"` // Configure the supervisor specific configuration path
Enable bool `json:"enable"` // Whether to open the open plug-in
}
Config systemd config
type ProgramExt ¶
type ProgramExt struct {
Manager string `json:"manager" toml:"manager"`
*Program `json:"program" toml:"program"`
Status string `json:"status" toml:"status"`
Content string `json:"content" toml:"content"`
FileName string `json:"file_name" toml:"file_name"`
FilePath string `json:"file_path" toml:"file_path"`
AppName string `json:"app_name" toml:"app_name"`
}
ProgramExt program ext show the detail info
type Scanner ¶
type Scanner struct {
StatusMap sync.Map //Process configuration state
// contains filtered or unexported fields
}
Scanner systemd scanner
func (*Scanner) ListPrograms ¶
func (s *Scanner) ListPrograms() (tasks map[string]*ProgramExt, err error)
ListPrograms show the systemd list
func (*Scanner) ProcessStatus ¶
func (s *Scanner) ProcessStatus() (processList []structs.ProcessStatus, err error)
ProcessStatus ...
Click to show internal directories.
Click to hide internal directories.