Documentation
¶
Overview ¶
Package cmd is a generated protocol buffer package.
It is generated from these files:
control_message.proto
It has these top-level messages:
ControlMessage NetChan StartRequest StartResponse
Index ¶
- Variables
- type ControlMessage
- type ControlMessage_Type
- type NetChan
- type StartRequest
- func (m *StartRequest) GetArgs() []string
- func (m *StartRequest) GetDir() string
- func (m *StartRequest) GetEnvs() []string
- func (m *StartRequest) GetExtraFiles() []string
- func (m *StartRequest) GetInputs() []*NetChan
- func (m *StartRequest) GetPath() string
- func (*StartRequest) ProtoMessage()
- func (m *StartRequest) Reset()
- func (m *StartRequest) String() string
- type StartResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ControlMessage_Type_name = map[int32]string{
1: "NoOp",
2: "StartRequest",
3: "StartResponse",
4: "StopRequest",
5: "StopResponse",
6: "GetStatusRequest",
7: "GetStatusResponse",
}
View Source
var ControlMessage_Type_value = map[string]int32{
"NoOp": 1,
"StartRequest": 2,
"StartResponse": 3,
"StopRequest": 4,
"StopResponse": 5,
"GetStatusRequest": 6,
"GetStatusResponse": 7,
}
Functions ¶
This section is empty.
Types ¶
type ControlMessage ¶
type ControlMessage struct { Type *ControlMessage_Type `protobuf:"varint,1,req,name=type,enum=cmd.ControlMessage_Type" json:"type,omitempty"` StartRequest *StartRequest `protobuf:"bytes,2,opt,name=startRequest" json:"startRequest,omitempty"` StartResponse *StartResponse `protobuf:"bytes,3,opt,name=startResponse" json:"startResponse,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ControlMessage) GetStartRequest ¶
func (m *ControlMessage) GetStartRequest() *StartRequest
func (*ControlMessage) GetStartResponse ¶
func (m *ControlMessage) GetStartResponse() *StartResponse
func (*ControlMessage) GetType ¶
func (m *ControlMessage) GetType() ControlMessage_Type
func (*ControlMessage) ProtoMessage ¶
func (*ControlMessage) ProtoMessage()
func (*ControlMessage) Reset ¶
func (m *ControlMessage) Reset()
func (*ControlMessage) String ¶
func (m *ControlMessage) String() string
type ControlMessage_Type ¶
type ControlMessage_Type int32
const ( ControlMessage_NoOp ControlMessage_Type = 1 ControlMessage_StartRequest ControlMessage_Type = 2 ControlMessage_StartResponse ControlMessage_Type = 3 ControlMessage_StopRequest ControlMessage_Type = 4 ControlMessage_StopResponse ControlMessage_Type = 5 ControlMessage_GetStatusRequest ControlMessage_Type = 6 ControlMessage_GetStatusResponse ControlMessage_Type = 7 )
func (ControlMessage_Type) Enum ¶
func (x ControlMessage_Type) Enum() *ControlMessage_Type
func (ControlMessage_Type) String ¶
func (x ControlMessage_Type) String() string
func (*ControlMessage_Type) UnmarshalJSON ¶
func (x *ControlMessage_Type) UnmarshalJSON(data []byte) error
type NetChan ¶
type NetChan struct { Server *string `protobuf:"bytes,1,req,name=server" json:"server,omitempty"` Port *int32 `protobuf:"varint,2,req,name=port" json:"port,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*NetChan) ProtoMessage ¶
func (*NetChan) ProtoMessage()
type StartRequest ¶
type StartRequest struct { Path *string `protobuf:"bytes,1,req,name=path" json:"path,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args" json:"args,omitempty"` Envs []string `protobuf:"bytes,3,rep,name=envs" json:"envs,omitempty"` Dir *string `protobuf:"bytes,4,req,name=dir" json:"dir,omitempty"` ExtraFiles []string `protobuf:"bytes,5,rep,name=extraFiles" json:"extraFiles,omitempty"` Inputs []*NetChan `protobuf:"bytes,6,rep,name=inputs" json:"inputs,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*StartRequest) GetArgs ¶
func (m *StartRequest) GetArgs() []string
func (*StartRequest) GetDir ¶
func (m *StartRequest) GetDir() string
func (*StartRequest) GetEnvs ¶
func (m *StartRequest) GetEnvs() []string
func (*StartRequest) GetExtraFiles ¶
func (m *StartRequest) GetExtraFiles() []string
func (*StartRequest) GetInputs ¶
func (m *StartRequest) GetInputs() []*NetChan
func (*StartRequest) GetPath ¶
func (m *StartRequest) GetPath() string
func (*StartRequest) ProtoMessage ¶
func (*StartRequest) ProtoMessage()
func (*StartRequest) Reset ¶
func (m *StartRequest) Reset()
func (*StartRequest) String ¶
func (m *StartRequest) String() string
type StartResponse ¶
type StartResponse struct { Pid *int32 `protobuf:"varint,1,req,name=pid" json:"pid,omitempty"` Error *string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` Stderr *NetChan `protobuf:"bytes,3,opt,name=stderr" json:"stderr,omitempty"` Outputs []*NetChan `protobuf:"bytes,4,rep,name=outputs" json:"outputs,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*StartResponse) GetError ¶
func (m *StartResponse) GetError() string
func (*StartResponse) GetOutputs ¶
func (m *StartResponse) GetOutputs() []*NetChan
func (*StartResponse) GetPid ¶
func (m *StartResponse) GetPid() int32
func (*StartResponse) GetStderr ¶
func (m *StartResponse) GetStderr() *NetChan
func (*StartResponse) ProtoMessage ¶
func (*StartResponse) ProtoMessage()
func (*StartResponse) Reset ¶
func (m *StartResponse) Reset()
func (*StartResponse) String ¶
func (m *StartResponse) String() string
Click to show internal directories.
Click to hide internal directories.