Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceDir ¶
InstanceDir returns the instance dir. InstanceDir does not check whether the instance exists
func LoadYAMLByFilePath ¶
LoadYAMLByFilePath loads and validates the yaml.
func ReadPIDFile ¶
Types ¶
type FormatData ¶
type Instance ¶
type Instance struct { Name string `json:"name"` Status Status `json:"status"` Dir string `json:"dir"` CPUs int `json:"cpus,omitempty"` Memory int64 `json:"memory,omitempty"` // bytes Disk int64 `json:"disk,omitempty"` // bytes VZPid int `json:"VZPid,omitempty"` Errors []error `json:"errors,omitempty"` }
Click to show internal directories.
Click to hide internal directories.