Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceID = "process"
ServiceID represents a system process service id
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { Name string Pid int Command string Arguments []string Stdin string Stdout string }
Info represents process info
type StartRequest ¶
type StartRequest struct { Target *location.Resource `required:"true" description:"host where process will be started"` Command string `required:"true" description:"command to start process"` *exec.Options Arguments []string AsSuperUser bool ImmuneToHangups bool `description:"start process as nohup"` Watch bool `description:"watch command output, work with nohup mode"` }
StartRequest represents a start request
func NewStartRequestFromURL ¶
func NewStartRequestFromURL(URL string) (*StartRequest, error)
NewStartRequestFromURL creates a new request from URL
func (*StartRequest) Init ¶
func (r *StartRequest) Init() error
type StartResponse ¶
StartResponse represents a start response
type StatusRequest ¶
type StatusRequest struct { Target *location.Resource Command string `` /* 133-byte string literal not displayed */ ExactCommand bool `description:"if this flag set do not try detect actual command but return all processes matched by command"` }
StatusRequest represents a status check request
func NewStatusRequest ¶
func NewStatusRequest(command string, target *location.Resource) *StatusRequest
type StatusResponse ¶
StatusResponse represents a status check response
type StopRequest ¶
type StopRequest struct { Target *location.Resource Pid int Input string `description:"if specified, matches all process Pid to stop"` }
StopRequest represents a stop request
func NewStopRequest ¶
func NewStopRequest(pid int, target *location.Resource) *StopRequest
NewStopRequest creates a stop request
type StopResponse ¶
type StopResponse struct {
Stdout string
}
StopResponse represents a stop response
Click to show internal directories.
Click to hide internal directories.