Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultHttpDomain = "http://xxxxxxx"
)
View Source
const (
ProcessDaemonEndpoint = "/var/run/process.sock"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpConnection ¶
type HttpConnection struct {
// contains filtered or unexported fields
}
func NewHttpConnection ¶
func NewHttpConnection(endpoint string) *HttpConnection
type ProcDaemon ¶
type ProcDaemon interface { //create process object CreateProcess(*types.ProcessInfo) error //inspect process status InspectProcessStatus(procId string) (*types.ProcessStatusInfo, error) //stop process StopProcess(procId string, timeout int) error //Delete process DeleteProcess(procId string) error //reload process, exec reloadCmd ReloadProcess(procId string) error //restart process, exec restartCmd RestartProcess(procId string) error }
func NewDaemon ¶
func NewDaemon() ProcDaemon
Click to show internal directories.
Click to hide internal directories.