Documentation ¶
Overview ¶
Package types is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
StartJobRequest StartJobResponse DeleteJobRequest DeleteJobResponse ListJobsRequest Job ListJobsResponse StateRequest StateResponse LogsRequest Log
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type API_LogsClient
- type API_LogsServer
- type DeleteJobRequest
- type DeleteJobResponse
- type Job
- type ListJobsRequest
- type ListJobsResponse
- type Log
- type LogsRequest
- type StartJobRequest
- type StartJobResponse
- type StateRequest
- type StateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { StartJob(ctx context.Context, in *StartJobRequest, opts ...grpc.CallOption) (*StartJobResponse, error) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobResponse, error) ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error) State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (API_LogsClient, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { StartJob(context.Context, *StartJobRequest) (*StartJobResponse, error) DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error) ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error) State(context.Context, *StateRequest) (*StateResponse, error) Logs(*LogsRequest, API_LogsServer) error }
type API_LogsClient ¶
type API_LogsClient interface { Recv() (*Log, error) grpc.ClientStream }
type API_LogsServer ¶
type API_LogsServer interface { Send(*Log) error grpc.ServerStream }
type DeleteJobRequest ¶
type DeleteJobRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*DeleteJobRequest) Descriptor ¶
func (*DeleteJobRequest) Descriptor() ([]byte, []int)
func (*DeleteJobRequest) ProtoMessage ¶
func (*DeleteJobRequest) ProtoMessage()
func (*DeleteJobRequest) Reset ¶
func (m *DeleteJobRequest) Reset()
func (*DeleteJobRequest) String ¶
func (m *DeleteJobRequest) String() string
type DeleteJobResponse ¶
type DeleteJobResponse struct { }
func (*DeleteJobResponse) Descriptor ¶
func (*DeleteJobResponse) Descriptor() ([]byte, []int)
func (*DeleteJobResponse) ProtoMessage ¶
func (*DeleteJobResponse) ProtoMessage()
func (*DeleteJobResponse) Reset ¶
func (m *DeleteJobResponse) Reset()
func (*DeleteJobResponse) String ¶
func (m *DeleteJobResponse) String() string
type Job ¶
type Job struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"` Artifacts string `protobuf:"bytes,4,opt,name=artifacts" json:"artifacts,omitempty"` Status string `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"` EmailRecipient string `protobuf:"bytes,6,opt,name=emailRecipient" json:"emailRecipient,omitempty"` }
func (*Job) Descriptor ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
type ListJobsRequest ¶
type ListJobsRequest struct { }
func (*ListJobsRequest) Descriptor ¶
func (*ListJobsRequest) Descriptor() ([]byte, []int)
func (*ListJobsRequest) ProtoMessage ¶
func (*ListJobsRequest) ProtoMessage()
func (*ListJobsRequest) Reset ¶
func (m *ListJobsRequest) Reset()
func (*ListJobsRequest) String ¶
func (m *ListJobsRequest) String() string
type ListJobsResponse ¶
type ListJobsResponse struct {
Jobs []*Job `protobuf:"bytes,1,rep,name=jobs" json:"jobs,omitempty"`
}
func (*ListJobsResponse) Descriptor ¶
func (*ListJobsResponse) Descriptor() ([]byte, []int)
func (*ListJobsResponse) GetJobs ¶
func (m *ListJobsResponse) GetJobs() []*Job
func (*ListJobsResponse) ProtoMessage ¶
func (*ListJobsResponse) ProtoMessage()
func (*ListJobsResponse) Reset ¶
func (m *ListJobsResponse) Reset()
func (*ListJobsResponse) String ¶
func (m *ListJobsResponse) String() string
type Log ¶
type Log struct {
Log string `protobuf:"bytes,1,opt,name=log" json:"log,omitempty"`
}
func (*Log) Descriptor ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
type LogsRequest ¶
type LogsRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Follow bool `protobuf:"varint,2,opt,name=follow" json:"follow,omitempty"` }
func (*LogsRequest) Descriptor ¶
func (*LogsRequest) Descriptor() ([]byte, []int)
func (*LogsRequest) ProtoMessage ¶
func (*LogsRequest) ProtoMessage()
func (*LogsRequest) Reset ¶
func (m *LogsRequest) Reset()
func (*LogsRequest) String ¶
func (m *LogsRequest) String() string
type StartJobRequest ¶
type StartJobRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args" json:"args,omitempty"` Artifacts string `protobuf:"bytes,3,opt,name=artifacts" json:"artifacts,omitempty"` EmailRecipient string `protobuf:"bytes,4,opt,name=emailRecipient" json:"emailRecipient,omitempty"` }
func (*StartJobRequest) Descriptor ¶
func (*StartJobRequest) Descriptor() ([]byte, []int)
func (*StartJobRequest) ProtoMessage ¶
func (*StartJobRequest) ProtoMessage()
func (*StartJobRequest) Reset ¶
func (m *StartJobRequest) Reset()
func (*StartJobRequest) String ¶
func (m *StartJobRequest) String() string
type StartJobResponse ¶
type StartJobResponse struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*StartJobResponse) Descriptor ¶
func (*StartJobResponse) Descriptor() ([]byte, []int)
func (*StartJobResponse) ProtoMessage ¶
func (*StartJobResponse) ProtoMessage()
func (*StartJobResponse) Reset ¶
func (m *StartJobResponse) Reset()
func (*StartJobResponse) String ¶
func (m *StartJobResponse) String() string
type StateRequest ¶
type StateRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*StateRequest) Descriptor ¶
func (*StateRequest) Descriptor() ([]byte, []int)
func (*StateRequest) ProtoMessage ¶
func (*StateRequest) ProtoMessage()
func (*StateRequest) Reset ¶
func (m *StateRequest) Reset()
func (*StateRequest) String ¶
func (m *StateRequest) String() string
type StateResponse ¶
type StateResponse struct {
Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}
func (*StateResponse) Descriptor ¶
func (*StateResponse) Descriptor() ([]byte, []int)
func (*StateResponse) ProtoMessage ¶
func (*StateResponse) ProtoMessage()
func (*StateResponse) Reset ¶
func (m *StateResponse) Reset()
func (*StateResponse) String ¶
func (m *StateResponse) String() string
Click to show internal directories.
Click to hide internal directories.