Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
Recipe RunRequest RunResponse Ping Result Pong
Index ¶
- Variables
- func RegisterRunnerServer(s *grpc.Server, srv RunnerServer)
- type Ping
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (m *Pong) GetAgentID() int64
- func (m *Pong) Marshal() (dAtA []byte, err error)
- func (m *Pong) MarshalTo(dAtA []byte) (int, error)
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) Size() (n int)
- func (m *Pong) String() string
- func (m *Pong) Unmarshal(dAtA []byte) error
- type Recipe
- func (*Recipe) Descriptor() ([]byte, []int)
- func (m *Recipe) GetCommands() string
- func (m *Recipe) GetEnvironment() []string
- func (m *Recipe) GetId() int64
- func (m *Recipe) Marshal() (dAtA []byte, err error)
- func (m *Recipe) MarshalTo(dAtA []byte) (int, error)
- func (*Recipe) ProtoMessage()
- func (m *Recipe) Reset()
- func (m *Recipe) Size() (n int)
- func (m *Recipe) String() string
- func (m *Recipe) Unmarshal(dAtA []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetAgentID() int64
- func (m *Result) GetOutput() string
- func (m *Result) GetSuccess() bool
- func (m *Result) Marshal() (dAtA []byte, err error)
- func (m *Result) MarshalTo(dAtA []byte) (int, error)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) Size() (n int)
- func (m *Result) String() string
- func (m *Result) Unmarshal(dAtA []byte) error
- type RunRequest
- func (*RunRequest) Descriptor() ([]byte, []int)
- func (m *RunRequest) GetAction() isRunRequest_Action
- func (m *RunRequest) GetPing() *Ping
- func (m *RunRequest) GetRecipe() *Recipe
- func (m *RunRequest) Marshal() (dAtA []byte, err error)
- func (m *RunRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RunRequest) ProtoMessage()
- func (m *RunRequest) Reset()
- func (m *RunRequest) Size() (n int)
- func (m *RunRequest) String() string
- func (m *RunRequest) Unmarshal(dAtA []byte) error
- func (*RunRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type RunRequest_Ping
- type RunRequest_Recipe
- type RunResponse
- func (*RunResponse) Descriptor() ([]byte, []int)
- func (m *RunResponse) GetPong() *Pong
- func (m *RunResponse) GetResponse() isRunResponse_Response
- func (m *RunResponse) GetResult() *Result
- func (m *RunResponse) Marshal() (dAtA []byte, err error)
- func (m *RunResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RunResponse) ProtoMessage()
- func (m *RunResponse) Reset()
- func (m *RunResponse) Size() (n int)
- func (m *RunResponse) String() string
- func (m *RunResponse) Unmarshal(dAtA []byte) error
- func (*RunResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type RunResponse_Pong
- type RunResponse_Result
- type RunnerClient
- type RunnerServer
- type Runner_RunClient
- type Runner_RunServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterRunnerServer ¶
func RegisterRunnerServer(s *grpc.Server, srv RunnerServer)
Types ¶
type Ping ¶
type Ping struct { }
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
type Pong ¶
type Pong struct {
AgentID int64 `protobuf:"varint,1,opt,name=agentID,proto3" json:"agentID,omitempty"`
}
func (*Pong) Descriptor ¶
func (*Pong) GetAgentID ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
type Recipe ¶
type Recipe struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Environment []string `protobuf:"bytes,3,rep,name=environment" json:"environment,omitempty"` Commands string `protobuf:"bytes,4,opt,name=commands,proto3" json:"commands,omitempty"` }
func (*Recipe) Descriptor ¶
func (*Recipe) GetCommands ¶
func (*Recipe) GetEnvironment ¶
func (*Recipe) ProtoMessage ¶
func (*Recipe) ProtoMessage()
type Result ¶
type Result struct { Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` AgentID int64 `protobuf:"varint,3,opt,name=agentID,proto3" json:"agentID,omitempty"` }
func (*Result) Descriptor ¶
func (*Result) GetAgentID ¶
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
type RunRequest ¶
type RunRequest struct { // Types that are valid to be assigned to Action: // *RunRequest_Recipe // *RunRequest_Ping Action isRunRequest_Action `protobuf_oneof:"action"` }
func (*RunRequest) Descriptor ¶
func (*RunRequest) Descriptor() ([]byte, []int)
func (*RunRequest) GetAction ¶
func (m *RunRequest) GetAction() isRunRequest_Action
func (*RunRequest) GetPing ¶
func (m *RunRequest) GetPing() *Ping
func (*RunRequest) GetRecipe ¶
func (m *RunRequest) GetRecipe() *Recipe
func (*RunRequest) Marshal ¶
func (m *RunRequest) Marshal() (dAtA []byte, err error)
func (*RunRequest) ProtoMessage ¶
func (*RunRequest) ProtoMessage()
func (*RunRequest) Reset ¶
func (m *RunRequest) Reset()
func (*RunRequest) Size ¶
func (m *RunRequest) Size() (n int)
func (*RunRequest) String ¶
func (m *RunRequest) String() string
func (*RunRequest) Unmarshal ¶
func (m *RunRequest) Unmarshal(dAtA []byte) error
func (*RunRequest) XXX_OneofFuncs ¶
func (*RunRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type RunRequest_Ping ¶
type RunRequest_Ping struct {
Ping *Ping `protobuf:"bytes,2,opt,name=ping,oneof"`
}
func (*RunRequest_Ping) Size ¶
func (m *RunRequest_Ping) Size() (n int)
type RunRequest_Recipe ¶
type RunRequest_Recipe struct {
Recipe *Recipe `protobuf:"bytes,1,opt,name=recipe,oneof"`
}
func (*RunRequest_Recipe) MarshalTo ¶
func (m *RunRequest_Recipe) MarshalTo(dAtA []byte) (int, error)
func (*RunRequest_Recipe) Size ¶
func (m *RunRequest_Recipe) Size() (n int)
type RunResponse ¶
type RunResponse struct { // Types that are valid to be assigned to Response: // *RunResponse_Result // *RunResponse_Pong Response isRunResponse_Response `protobuf_oneof:"response"` }
func (*RunResponse) Descriptor ¶
func (*RunResponse) Descriptor() ([]byte, []int)
func (*RunResponse) GetPong ¶
func (m *RunResponse) GetPong() *Pong
func (*RunResponse) GetResponse ¶
func (m *RunResponse) GetResponse() isRunResponse_Response
func (*RunResponse) GetResult ¶
func (m *RunResponse) GetResult() *Result
func (*RunResponse) Marshal ¶
func (m *RunResponse) Marshal() (dAtA []byte, err error)
func (*RunResponse) ProtoMessage ¶
func (*RunResponse) ProtoMessage()
func (*RunResponse) Reset ¶
func (m *RunResponse) Reset()
func (*RunResponse) Size ¶
func (m *RunResponse) Size() (n int)
func (*RunResponse) String ¶
func (m *RunResponse) String() string
func (*RunResponse) Unmarshal ¶
func (m *RunResponse) Unmarshal(dAtA []byte) error
func (*RunResponse) XXX_OneofFuncs ¶
func (*RunResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type RunResponse_Pong ¶
type RunResponse_Pong struct {
Pong *Pong `protobuf:"bytes,2,opt,name=pong,oneof"`
}
func (*RunResponse_Pong) Size ¶
func (m *RunResponse_Pong) Size() (n int)
type RunResponse_Result ¶
type RunResponse_Result struct {
Result *Result `protobuf:"bytes,1,opt,name=result,oneof"`
}
func (*RunResponse_Result) MarshalTo ¶
func (m *RunResponse_Result) MarshalTo(dAtA []byte) (int, error)
func (*RunResponse_Result) Size ¶
func (m *RunResponse_Result) Size() (n int)
type RunnerClient ¶
type RunnerClient interface {
Run(ctx context.Context, opts ...grpc.CallOption) (Runner_RunClient, error)
}
func NewRunnerClient ¶
func NewRunnerClient(cc *grpc.ClientConn) RunnerClient
type RunnerServer ¶
type RunnerServer interface {
Run(Runner_RunServer) error
}
type Runner_RunClient ¶
type Runner_RunClient interface { Send(*RunResponse) error Recv() (*RunRequest, error) grpc.ClientStream }
type Runner_RunServer ¶
type Runner_RunServer interface { Send(*RunRequest) error Recv() (*RunResponse, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.