Documentation ¶
Index ¶
- Variables
- func RegisterExecutorServer(s grpc.ServiceRegistrar, srv ExecutorServer)
- type CancelCommandRequest
- func (*CancelCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelCommandRequest) GetExecutionID() string
- func (*CancelCommandRequest) ProtoMessage()
- func (x *CancelCommandRequest) ProtoReflect() protoreflect.Message
- func (x *CancelCommandRequest) Reset()
- func (x *CancelCommandRequest) String() string
- type CancelCommandResponse
- type ExecutorClient
- type ExecutorServer
- type Executor_GetOutputStreamClient
- type Executor_GetOutputStreamServer
- type Executor_WaitClient
- type Executor_WaitServer
- type IsInstalledRequest
- type IsInstalledResponse
- func (*IsInstalledResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsInstalledResponse) GetInstalled() bool
- func (*IsInstalledResponse) ProtoMessage()
- func (x *IsInstalledResponse) ProtoReflect() protoreflect.Message
- func (x *IsInstalledResponse) Reset()
- func (x *IsInstalledResponse) String() string
- type OutputStreamRequest
- func (*OutputStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OutputStreamRequest) GetExecutionID() string
- func (x *OutputStreamRequest) GetFollow() bool
- func (x *OutputStreamRequest) GetHistory() bool
- func (*OutputStreamRequest) ProtoMessage()
- func (x *OutputStreamRequest) ProtoReflect() protoreflect.Message
- func (x *OutputStreamRequest) Reset()
- func (x *OutputStreamRequest) String() string
- type OutputStreamResponse
- func (*OutputStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OutputStreamResponse) GetData() []byte
- func (*OutputStreamResponse) ProtoMessage()
- func (x *OutputStreamResponse) ProtoReflect() protoreflect.Message
- func (x *OutputStreamResponse) Reset()
- func (x *OutputStreamResponse) String() string
- type RunCommandRequest
- type RunCommandResponse
- func (*RunCommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunCommandResponse) GetParams() []byte
- func (*RunCommandResponse) ProtoMessage()
- func (x *RunCommandResponse) ProtoReflect() protoreflect.Message
- func (x *RunCommandResponse) Reset()
- func (x *RunCommandResponse) String() string
- type ShouldBidBasedOnUsageRequest
- func (*ShouldBidBasedOnUsageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShouldBidBasedOnUsageRequest) GetBidRequest() []byte
- func (x *ShouldBidBasedOnUsageRequest) GetUsage() []byte
- func (*ShouldBidBasedOnUsageRequest) ProtoMessage()
- func (x *ShouldBidBasedOnUsageRequest) ProtoReflect() protoreflect.Message
- func (x *ShouldBidBasedOnUsageRequest) Reset()
- func (x *ShouldBidBasedOnUsageRequest) String() string
- type ShouldBidRequest
- type ShouldBidResponse
- func (*ShouldBidResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShouldBidResponse) GetBidResponse() []byte
- func (*ShouldBidResponse) ProtoMessage()
- func (x *ShouldBidResponse) ProtoReflect() protoreflect.Message
- func (x *ShouldBidResponse) Reset()
- func (x *ShouldBidResponse) String() string
- type StartResponse
- type UnimplementedExecutorServer
- func (UnimplementedExecutorServer) Cancel(context.Context, *CancelCommandRequest) (*CancelCommandResponse, error)
- func (UnimplementedExecutorServer) GetOutputStream(*OutputStreamRequest, Executor_GetOutputStreamServer) error
- func (UnimplementedExecutorServer) IsInstalled(context.Context, *IsInstalledRequest) (*IsInstalledResponse, error)
- func (UnimplementedExecutorServer) Run(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
- func (UnimplementedExecutorServer) ShouldBid(context.Context, *ShouldBidRequest) (*ShouldBidResponse, error)
- func (UnimplementedExecutorServer) ShouldBidBasedOnUsage(context.Context, *ShouldBidBasedOnUsageRequest) (*ShouldBidResponse, error)
- func (UnimplementedExecutorServer) Start(context.Context, *RunCommandRequest) (*StartResponse, error)
- func (UnimplementedExecutorServer) Wait(*WaitRequest, Executor_WaitServer) error
- type UnsafeExecutorServer
- type WaitRequest
Constants ¶
This section is empty.
Variables ¶
var Executor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Executor", HandlerType: (*ExecutorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Run", Handler: _Executor_Run_Handler, }, { MethodName: "Start", Handler: _Executor_Start_Handler, }, { MethodName: "Cancel", Handler: _Executor_Cancel_Handler, }, { MethodName: "IsInstalled", Handler: _Executor_IsInstalled_Handler, }, { MethodName: "ShouldBid", Handler: _Executor_ShouldBid_Handler, }, { MethodName: "ShouldBidBasedOnUsage", Handler: _Executor_ShouldBidBasedOnUsage_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Wait", Handler: _Executor_Wait_Handler, ServerStreams: true, }, { StreamName: "GetOutputStream", Handler: _Executor_GetOutputStream_Handler, ServerStreams: true, }, }, Metadata: "executor.proto", }
Executor_ServiceDesc is the grpc.ServiceDesc for Executor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_executor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExecutorServer ¶
func RegisterExecutorServer(s grpc.ServiceRegistrar, srv ExecutorServer)
Types ¶
type CancelCommandRequest ¶
type CancelCommandRequest struct { ExecutionID string `protobuf:"bytes,1,opt,name=ExecutionID,proto3" json:"ExecutionID,omitempty"` // contains filtered or unexported fields }
func (*CancelCommandRequest) Descriptor
deprecated
func (*CancelCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelCommandRequest.ProtoReflect.Descriptor instead.
func (*CancelCommandRequest) GetExecutionID ¶
func (x *CancelCommandRequest) GetExecutionID() string
func (*CancelCommandRequest) ProtoMessage ¶
func (*CancelCommandRequest) ProtoMessage()
func (*CancelCommandRequest) ProtoReflect ¶ added in v1.2.0
func (x *CancelCommandRequest) ProtoReflect() protoreflect.Message
func (*CancelCommandRequest) Reset ¶
func (x *CancelCommandRequest) Reset()
func (*CancelCommandRequest) String ¶
func (x *CancelCommandRequest) String() string
type CancelCommandResponse ¶
type CancelCommandResponse struct {
// contains filtered or unexported fields
}
func (*CancelCommandResponse) Descriptor
deprecated
func (*CancelCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelCommandResponse.ProtoReflect.Descriptor instead.
func (*CancelCommandResponse) ProtoMessage ¶
func (*CancelCommandResponse) ProtoMessage()
func (*CancelCommandResponse) ProtoReflect ¶ added in v1.2.0
func (x *CancelCommandResponse) ProtoReflect() protoreflect.Message
func (*CancelCommandResponse) Reset ¶
func (x *CancelCommandResponse) Reset()
func (*CancelCommandResponse) String ¶
func (x *CancelCommandResponse) String() string
type ExecutorClient ¶
type ExecutorClient interface { Run(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*RunCommandResponse, error) Start(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*StartResponse, error) Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (Executor_WaitClient, error) Cancel(ctx context.Context, in *CancelCommandRequest, opts ...grpc.CallOption) (*CancelCommandResponse, error) IsInstalled(ctx context.Context, in *IsInstalledRequest, opts ...grpc.CallOption) (*IsInstalledResponse, error) ShouldBid(ctx context.Context, in *ShouldBidRequest, opts ...grpc.CallOption) (*ShouldBidResponse, error) ShouldBidBasedOnUsage(ctx context.Context, in *ShouldBidBasedOnUsageRequest, opts ...grpc.CallOption) (*ShouldBidResponse, error) GetOutputStream(ctx context.Context, in *OutputStreamRequest, opts ...grpc.CallOption) (Executor_GetOutputStreamClient, error) }
ExecutorClient is the client API for Executor service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewExecutorClient ¶
func NewExecutorClient(cc grpc.ClientConnInterface) ExecutorClient
type ExecutorServer ¶
type ExecutorServer interface { Run(context.Context, *RunCommandRequest) (*RunCommandResponse, error) Start(context.Context, *RunCommandRequest) (*StartResponse, error) Wait(*WaitRequest, Executor_WaitServer) error Cancel(context.Context, *CancelCommandRequest) (*CancelCommandResponse, error) IsInstalled(context.Context, *IsInstalledRequest) (*IsInstalledResponse, error) ShouldBid(context.Context, *ShouldBidRequest) (*ShouldBidResponse, error) ShouldBidBasedOnUsage(context.Context, *ShouldBidBasedOnUsageRequest) (*ShouldBidResponse, error) GetOutputStream(*OutputStreamRequest, Executor_GetOutputStreamServer) error // contains filtered or unexported methods }
ExecutorServer is the server API for Executor service. All implementations must embed UnimplementedExecutorServer for forward compatibility
type Executor_GetOutputStreamClient ¶
type Executor_GetOutputStreamClient interface { Recv() (*OutputStreamResponse, error) grpc.ClientStream }
type Executor_GetOutputStreamServer ¶
type Executor_GetOutputStreamServer interface { Send(*OutputStreamResponse) error grpc.ServerStream }
type Executor_WaitClient ¶
type Executor_WaitClient interface { Recv() (*RunCommandResponse, error) grpc.ClientStream }
type Executor_WaitServer ¶
type Executor_WaitServer interface { Send(*RunCommandResponse) error grpc.ServerStream }
type IsInstalledRequest ¶
type IsInstalledRequest struct {
// contains filtered or unexported fields
}
func (*IsInstalledRequest) Descriptor
deprecated
func (*IsInstalledRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsInstalledRequest.ProtoReflect.Descriptor instead.
func (*IsInstalledRequest) ProtoMessage ¶
func (*IsInstalledRequest) ProtoMessage()
func (*IsInstalledRequest) ProtoReflect ¶ added in v1.2.0
func (x *IsInstalledRequest) ProtoReflect() protoreflect.Message
func (*IsInstalledRequest) Reset ¶
func (x *IsInstalledRequest) Reset()
func (*IsInstalledRequest) String ¶
func (x *IsInstalledRequest) String() string
type IsInstalledResponse ¶
type IsInstalledResponse struct { Installed bool `protobuf:"varint,1,opt,name=Installed,proto3" json:"Installed,omitempty"` // contains filtered or unexported fields }
func (*IsInstalledResponse) Descriptor
deprecated
func (*IsInstalledResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsInstalledResponse.ProtoReflect.Descriptor instead.
func (*IsInstalledResponse) GetInstalled ¶
func (x *IsInstalledResponse) GetInstalled() bool
func (*IsInstalledResponse) ProtoMessage ¶
func (*IsInstalledResponse) ProtoMessage()
func (*IsInstalledResponse) ProtoReflect ¶ added in v1.2.0
func (x *IsInstalledResponse) ProtoReflect() protoreflect.Message
func (*IsInstalledResponse) Reset ¶
func (x *IsInstalledResponse) Reset()
func (*IsInstalledResponse) String ¶
func (x *IsInstalledResponse) String() string
type OutputStreamRequest ¶
type OutputStreamRequest struct { ExecutionID string `protobuf:"bytes,1,opt,name=ExecutionID,proto3" json:"ExecutionID,omitempty"` History bool `protobuf:"varint,2,opt,name=History,proto3" json:"History,omitempty"` Follow bool `protobuf:"varint,3,opt,name=Follow,proto3" json:"Follow,omitempty"` // contains filtered or unexported fields }
func (*OutputStreamRequest) Descriptor
deprecated
func (*OutputStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use OutputStreamRequest.ProtoReflect.Descriptor instead.
func (*OutputStreamRequest) GetExecutionID ¶
func (x *OutputStreamRequest) GetExecutionID() string
func (*OutputStreamRequest) GetFollow ¶
func (x *OutputStreamRequest) GetFollow() bool
func (*OutputStreamRequest) GetHistory ¶
func (x *OutputStreamRequest) GetHistory() bool
func (*OutputStreamRequest) ProtoMessage ¶
func (*OutputStreamRequest) ProtoMessage()
func (*OutputStreamRequest) ProtoReflect ¶ added in v1.2.0
func (x *OutputStreamRequest) ProtoReflect() protoreflect.Message
func (*OutputStreamRequest) Reset ¶
func (x *OutputStreamRequest) Reset()
func (*OutputStreamRequest) String ¶
func (x *OutputStreamRequest) String() string
type OutputStreamResponse ¶
type OutputStreamResponse struct { Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*OutputStreamResponse) Descriptor
deprecated
func (*OutputStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use OutputStreamResponse.ProtoReflect.Descriptor instead.
func (*OutputStreamResponse) GetData ¶
func (x *OutputStreamResponse) GetData() []byte
func (*OutputStreamResponse) ProtoMessage ¶
func (*OutputStreamResponse) ProtoMessage()
func (*OutputStreamResponse) ProtoReflect ¶ added in v1.2.0
func (x *OutputStreamResponse) ProtoReflect() protoreflect.Message
func (*OutputStreamResponse) Reset ¶
func (x *OutputStreamResponse) Reset()
func (*OutputStreamResponse) String ¶
func (x *OutputStreamResponse) String() string
type RunCommandRequest ¶
type RunCommandRequest struct { Params []byte `protobuf:"bytes,1,opt,name=Params,proto3" json:"Params,omitempty"` // contains filtered or unexported fields }
func (*RunCommandRequest) Descriptor
deprecated
func (*RunCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunCommandRequest.ProtoReflect.Descriptor instead.
func (*RunCommandRequest) GetParams ¶
func (x *RunCommandRequest) GetParams() []byte
func (*RunCommandRequest) ProtoMessage ¶
func (*RunCommandRequest) ProtoMessage()
func (*RunCommandRequest) ProtoReflect ¶ added in v1.2.0
func (x *RunCommandRequest) ProtoReflect() protoreflect.Message
func (*RunCommandRequest) Reset ¶
func (x *RunCommandRequest) Reset()
func (*RunCommandRequest) String ¶
func (x *RunCommandRequest) String() string
type RunCommandResponse ¶
type RunCommandResponse struct { Params []byte `protobuf:"bytes,1,opt,name=Params,proto3" json:"Params,omitempty"` // contains filtered or unexported fields }
func (*RunCommandResponse) Descriptor
deprecated
func (*RunCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunCommandResponse.ProtoReflect.Descriptor instead.
func (*RunCommandResponse) GetParams ¶
func (x *RunCommandResponse) GetParams() []byte
func (*RunCommandResponse) ProtoMessage ¶
func (*RunCommandResponse) ProtoMessage()
func (*RunCommandResponse) ProtoReflect ¶ added in v1.2.0
func (x *RunCommandResponse) ProtoReflect() protoreflect.Message
func (*RunCommandResponse) Reset ¶
func (x *RunCommandResponse) Reset()
func (*RunCommandResponse) String ¶
func (x *RunCommandResponse) String() string
type ShouldBidBasedOnUsageRequest ¶
type ShouldBidBasedOnUsageRequest struct { BidRequest []byte `protobuf:"bytes,1,opt,name=BidRequest,proto3" json:"BidRequest,omitempty"` Usage []byte `protobuf:"bytes,2,opt,name=Usage,proto3" json:"Usage,omitempty"` // contains filtered or unexported fields }
func (*ShouldBidBasedOnUsageRequest) Descriptor
deprecated
func (*ShouldBidBasedOnUsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShouldBidBasedOnUsageRequest.ProtoReflect.Descriptor instead.
func (*ShouldBidBasedOnUsageRequest) GetBidRequest ¶
func (x *ShouldBidBasedOnUsageRequest) GetBidRequest() []byte
func (*ShouldBidBasedOnUsageRequest) GetUsage ¶
func (x *ShouldBidBasedOnUsageRequest) GetUsage() []byte
func (*ShouldBidBasedOnUsageRequest) ProtoMessage ¶
func (*ShouldBidBasedOnUsageRequest) ProtoMessage()
func (*ShouldBidBasedOnUsageRequest) ProtoReflect ¶ added in v1.2.0
func (x *ShouldBidBasedOnUsageRequest) ProtoReflect() protoreflect.Message
func (*ShouldBidBasedOnUsageRequest) Reset ¶
func (x *ShouldBidBasedOnUsageRequest) Reset()
func (*ShouldBidBasedOnUsageRequest) String ¶
func (x *ShouldBidBasedOnUsageRequest) String() string
type ShouldBidRequest ¶
type ShouldBidRequest struct { BidRequest []byte `protobuf:"bytes,1,opt,name=BidRequest,proto3" json:"BidRequest,omitempty"` // contains filtered or unexported fields }
func (*ShouldBidRequest) Descriptor
deprecated
func (*ShouldBidRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShouldBidRequest.ProtoReflect.Descriptor instead.
func (*ShouldBidRequest) GetBidRequest ¶
func (x *ShouldBidRequest) GetBidRequest() []byte
func (*ShouldBidRequest) ProtoMessage ¶
func (*ShouldBidRequest) ProtoMessage()
func (*ShouldBidRequest) ProtoReflect ¶ added in v1.2.0
func (x *ShouldBidRequest) ProtoReflect() protoreflect.Message
func (*ShouldBidRequest) Reset ¶
func (x *ShouldBidRequest) Reset()
func (*ShouldBidRequest) String ¶
func (x *ShouldBidRequest) String() string
type ShouldBidResponse ¶
type ShouldBidResponse struct { BidResponse []byte `protobuf:"bytes,1,opt,name=BidResponse,proto3" json:"BidResponse,omitempty"` // contains filtered or unexported fields }
shared by both semantic and resource bid
func (*ShouldBidResponse) Descriptor
deprecated
func (*ShouldBidResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShouldBidResponse.ProtoReflect.Descriptor instead.
func (*ShouldBidResponse) GetBidResponse ¶
func (x *ShouldBidResponse) GetBidResponse() []byte
func (*ShouldBidResponse) ProtoMessage ¶
func (*ShouldBidResponse) ProtoMessage()
func (*ShouldBidResponse) ProtoReflect ¶ added in v1.2.0
func (x *ShouldBidResponse) ProtoReflect() protoreflect.Message
func (*ShouldBidResponse) Reset ¶
func (x *ShouldBidResponse) Reset()
func (*ShouldBidResponse) String ¶
func (x *ShouldBidResponse) String() string
type StartResponse ¶
type StartResponse struct {
// contains filtered or unexported fields
}
func (*StartResponse) Descriptor
deprecated
func (*StartResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.
func (*StartResponse) ProtoMessage ¶
func (*StartResponse) ProtoMessage()
func (*StartResponse) ProtoReflect ¶ added in v1.2.0
func (x *StartResponse) ProtoReflect() protoreflect.Message
func (*StartResponse) Reset ¶
func (x *StartResponse) Reset()
func (*StartResponse) String ¶
func (x *StartResponse) String() string
type UnimplementedExecutorServer ¶
type UnimplementedExecutorServer struct { }
UnimplementedExecutorServer must be embedded to have forward compatible implementations.
func (UnimplementedExecutorServer) Cancel ¶
func (UnimplementedExecutorServer) Cancel(context.Context, *CancelCommandRequest) (*CancelCommandResponse, error)
func (UnimplementedExecutorServer) GetOutputStream ¶
func (UnimplementedExecutorServer) GetOutputStream(*OutputStreamRequest, Executor_GetOutputStreamServer) error
func (UnimplementedExecutorServer) IsInstalled ¶
func (UnimplementedExecutorServer) IsInstalled(context.Context, *IsInstalledRequest) (*IsInstalledResponse, error)
func (UnimplementedExecutorServer) Run ¶
func (UnimplementedExecutorServer) Run(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
func (UnimplementedExecutorServer) ShouldBid ¶
func (UnimplementedExecutorServer) ShouldBid(context.Context, *ShouldBidRequest) (*ShouldBidResponse, error)
func (UnimplementedExecutorServer) ShouldBidBasedOnUsage ¶
func (UnimplementedExecutorServer) ShouldBidBasedOnUsage(context.Context, *ShouldBidBasedOnUsageRequest) (*ShouldBidResponse, error)
func (UnimplementedExecutorServer) Start ¶
func (UnimplementedExecutorServer) Start(context.Context, *RunCommandRequest) (*StartResponse, error)
func (UnimplementedExecutorServer) Wait ¶
func (UnimplementedExecutorServer) Wait(*WaitRequest, Executor_WaitServer) error
type UnsafeExecutorServer ¶ added in v1.2.0
type UnsafeExecutorServer interface {
// contains filtered or unexported methods
}
UnsafeExecutorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecutorServer will result in compilation errors.
type WaitRequest ¶
type WaitRequest struct { ExecutionID string `protobuf:"bytes,1,opt,name=ExecutionID,proto3" json:"ExecutionID,omitempty"` // contains filtered or unexported fields }
func (*WaitRequest) Descriptor
deprecated
func (*WaitRequest) Descriptor() ([]byte, []int)
Deprecated: Use WaitRequest.ProtoReflect.Descriptor instead.
func (*WaitRequest) GetExecutionID ¶
func (x *WaitRequest) GetExecutionID() string
func (*WaitRequest) ProtoMessage ¶
func (*WaitRequest) ProtoMessage()
func (*WaitRequest) ProtoReflect ¶ added in v1.2.0
func (x *WaitRequest) ProtoReflect() protoreflect.Message
func (*WaitRequest) Reset ¶
func (x *WaitRequest) Reset()
func (*WaitRequest) String ¶
func (x *WaitRequest) String() string