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 *url.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 ¶ added in v0.25.1
func NewStartRequestFromURL(URL string) (*StartRequest, error)
NewStartRequestFromURL creates a new request from URL
func (*StartRequest) Init ¶ added in v0.41.0
func (r *StartRequest) Init() error
type StartResponse ¶
StartResponse represents a start response
type StatusRequest ¶
type StatusRequest struct { Target *url.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 ¶ added in v0.41.0
func NewStatusRequest(command string, target *url.Resource) *StatusRequest
type StatusResponse ¶
StatusResponse represents a status check response
type StopRequest ¶
type StopRequest struct { Target *url.Resource Pid int Input string `description:"if specified, matches all process PID to stop"` }
StopRequest represents a stop request
func NewStopRequest ¶ added in v0.41.0
func NewStopRequest(pid int, target *url.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.