Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterExecutionServer(s grpc.ServiceRegistrar, srv ExecutionServer)
- type ExecuteRequest
- func (*ExecuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteRequest) GetAction() *encryptedaction.Action
- func (x *ExecuteRequest) GetPriority() int32
- func (*ExecuteRequest) ProtoMessage()
- func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteRequest) Reset()
- func (x *ExecuteRequest) String() string
- type ExecuteResponse
- func (*ExecuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResponse) GetCompleted() *ExecuteResponse_Completed
- func (x *ExecuteResponse) GetExecuting() *ExecuteResponse_Executing
- func (x *ExecuteResponse) GetName() string
- func (x *ExecuteResponse) GetQueued() *ExecuteResponse_Queued
- func (x *ExecuteResponse) GetStage() isExecuteResponse_Stage
- func (*ExecuteResponse) ProtoMessage()
- func (x *ExecuteResponse) ProtoReflect() protoreflect.Message
- func (x *ExecuteResponse) Reset()
- func (x *ExecuteResponse) String() string
- type ExecuteResponse_Completed
- func (*ExecuteResponse_Completed) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResponse_Completed) GetCompletionEvent() *encryptedaction.Event
- func (*ExecuteResponse_Completed) ProtoMessage()
- func (x *ExecuteResponse_Completed) ProtoReflect() protoreflect.Message
- func (x *ExecuteResponse_Completed) Reset()
- func (x *ExecuteResponse_Completed) String() string
- type ExecuteResponse_Completed_
- type ExecuteResponse_Executing
- func (*ExecuteResponse_Executing) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResponse_Executing) GetLastEvent() *encryptedaction.Event
- func (*ExecuteResponse_Executing) ProtoMessage()
- func (x *ExecuteResponse_Executing) ProtoReflect() protoreflect.Message
- func (x *ExecuteResponse_Executing) Reset()
- func (x *ExecuteResponse_Executing) String() string
- type ExecuteResponse_Executing_
- type ExecuteResponse_Queued
- type ExecuteResponse_Queued_
- type ExecutionClient
- type ExecutionServer
- type Execution_ExecuteClient
- type Execution_ExecuteServer
- type Execution_WaitExecutionClient
- type Execution_WaitExecutionServer
- type UnimplementedExecutionServer
- type UnsafeExecutionServer
- type WaitExecutionRequest
- func (*WaitExecutionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WaitExecutionRequest) GetName() string
- func (*WaitExecutionRequest) ProtoMessage()
- func (x *WaitExecutionRequest) ProtoReflect() protoreflect.Message
- func (x *WaitExecutionRequest) Reset()
- func (x *WaitExecutionRequest) String() string
Constants ¶
const ( Execution_Execute_FullMethodName = "/bonanza.remoteexecution.Execution/Execute" Execution_WaitExecution_FullMethodName = "/bonanza.remoteexecution.Execution/WaitExecution" )
Variables ¶
var Execution_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bonanza.remoteexecution.Execution", HandlerType: (*ExecutionServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Execute", Handler: _Execution_Execute_Handler, ServerStreams: true, }, { StreamName: "WaitExecution", Handler: _Execution_WaitExecution_Handler, ServerStreams: true, }, }, Metadata: "pkg/proto/remoteexecution/remoteexecution.proto", }
Execution_ServiceDesc is the grpc.ServiceDesc for Execution service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_proto_remoteexecution_remoteexecution_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExecutionServer ¶
func RegisterExecutionServer(s grpc.ServiceRegistrar, srv ExecutionServer)
Types ¶
type ExecuteRequest ¶
type ExecuteRequest struct { Action *encryptedaction.Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*ExecuteRequest) Descriptor
deprecated
func (*ExecuteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.
func (*ExecuteRequest) GetAction ¶
func (x *ExecuteRequest) GetAction() *encryptedaction.Action
func (*ExecuteRequest) GetPriority ¶
func (x *ExecuteRequest) GetPriority() int32
func (*ExecuteRequest) ProtoMessage ¶
func (*ExecuteRequest) ProtoMessage()
func (*ExecuteRequest) ProtoReflect ¶
func (x *ExecuteRequest) ProtoReflect() protoreflect.Message
func (*ExecuteRequest) Reset ¶
func (x *ExecuteRequest) Reset()
func (*ExecuteRequest) String ¶
func (x *ExecuteRequest) String() string
type ExecuteResponse ¶
type ExecuteResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Stage: // // *ExecuteResponse_Queued_ // *ExecuteResponse_Executing_ // *ExecuteResponse_Completed_ Stage isExecuteResponse_Stage `protobuf_oneof:"stage"` // contains filtered or unexported fields }
func (*ExecuteResponse) Descriptor
deprecated
func (*ExecuteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.
func (*ExecuteResponse) GetCompleted ¶
func (x *ExecuteResponse) GetCompleted() *ExecuteResponse_Completed
func (*ExecuteResponse) GetExecuting ¶
func (x *ExecuteResponse) GetExecuting() *ExecuteResponse_Executing
func (*ExecuteResponse) GetName ¶
func (x *ExecuteResponse) GetName() string
func (*ExecuteResponse) GetQueued ¶
func (x *ExecuteResponse) GetQueued() *ExecuteResponse_Queued
func (*ExecuteResponse) GetStage ¶
func (x *ExecuteResponse) GetStage() isExecuteResponse_Stage
func (*ExecuteResponse) ProtoMessage ¶
func (*ExecuteResponse) ProtoMessage()
func (*ExecuteResponse) ProtoReflect ¶
func (x *ExecuteResponse) ProtoReflect() protoreflect.Message
func (*ExecuteResponse) Reset ¶
func (x *ExecuteResponse) Reset()
func (*ExecuteResponse) String ¶
func (x *ExecuteResponse) String() string
type ExecuteResponse_Completed ¶
type ExecuteResponse_Completed struct { CompletionEvent *encryptedaction.Event `protobuf:"bytes,1,opt,name=completion_event,json=completionEvent,proto3" json:"completion_event,omitempty"` // contains filtered or unexported fields }
func (*ExecuteResponse_Completed) Descriptor
deprecated
func (*ExecuteResponse_Completed) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResponse_Completed.ProtoReflect.Descriptor instead.
func (*ExecuteResponse_Completed) GetCompletionEvent ¶
func (x *ExecuteResponse_Completed) GetCompletionEvent() *encryptedaction.Event
func (*ExecuteResponse_Completed) ProtoMessage ¶
func (*ExecuteResponse_Completed) ProtoMessage()
func (*ExecuteResponse_Completed) ProtoReflect ¶
func (x *ExecuteResponse_Completed) ProtoReflect() protoreflect.Message
func (*ExecuteResponse_Completed) Reset ¶
func (x *ExecuteResponse_Completed) Reset()
func (*ExecuteResponse_Completed) String ¶
func (x *ExecuteResponse_Completed) String() string
type ExecuteResponse_Completed_ ¶
type ExecuteResponse_Completed_ struct {
Completed *ExecuteResponse_Completed `protobuf:"bytes,4,opt,name=completed,proto3,oneof"`
}
type ExecuteResponse_Executing ¶
type ExecuteResponse_Executing struct { LastEvent *encryptedaction.Event `protobuf:"bytes,1,opt,name=last_event,json=lastEvent,proto3" json:"last_event,omitempty"` // contains filtered or unexported fields }
func (*ExecuteResponse_Executing) Descriptor
deprecated
func (*ExecuteResponse_Executing) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResponse_Executing.ProtoReflect.Descriptor instead.
func (*ExecuteResponse_Executing) GetLastEvent ¶
func (x *ExecuteResponse_Executing) GetLastEvent() *encryptedaction.Event
func (*ExecuteResponse_Executing) ProtoMessage ¶
func (*ExecuteResponse_Executing) ProtoMessage()
func (*ExecuteResponse_Executing) ProtoReflect ¶
func (x *ExecuteResponse_Executing) ProtoReflect() protoreflect.Message
func (*ExecuteResponse_Executing) Reset ¶
func (x *ExecuteResponse_Executing) Reset()
func (*ExecuteResponse_Executing) String ¶
func (x *ExecuteResponse_Executing) String() string
type ExecuteResponse_Executing_ ¶
type ExecuteResponse_Executing_ struct {
Executing *ExecuteResponse_Executing `protobuf:"bytes,3,opt,name=executing,proto3,oneof"`
}
type ExecuteResponse_Queued ¶
type ExecuteResponse_Queued struct {
// contains filtered or unexported fields
}
func (*ExecuteResponse_Queued) Descriptor
deprecated
func (*ExecuteResponse_Queued) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResponse_Queued.ProtoReflect.Descriptor instead.
func (*ExecuteResponse_Queued) ProtoMessage ¶
func (*ExecuteResponse_Queued) ProtoMessage()
func (*ExecuteResponse_Queued) ProtoReflect ¶
func (x *ExecuteResponse_Queued) ProtoReflect() protoreflect.Message
func (*ExecuteResponse_Queued) Reset ¶
func (x *ExecuteResponse_Queued) Reset()
func (*ExecuteResponse_Queued) String ¶
func (x *ExecuteResponse_Queued) String() string
type ExecuteResponse_Queued_ ¶
type ExecuteResponse_Queued_ struct {
Queued *ExecuteResponse_Queued `protobuf:"bytes,2,opt,name=queued,proto3,oneof"`
}
type ExecutionClient ¶
type ExecutionClient interface { Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecuteResponse], error) WaitExecution(ctx context.Context, in *WaitExecutionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecuteResponse], error) }
ExecutionClient is the client API for Execution 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 NewExecutionClient ¶
func NewExecutionClient(cc grpc.ClientConnInterface) ExecutionClient
type ExecutionServer ¶
type ExecutionServer interface { Execute(*ExecuteRequest, grpc.ServerStreamingServer[ExecuteResponse]) error WaitExecution(*WaitExecutionRequest, grpc.ServerStreamingServer[ExecuteResponse]) error }
ExecutionServer is the server API for Execution service. All implementations should embed UnimplementedExecutionServer for forward compatibility.
type Execution_ExecuteClient ¶
type Execution_ExecuteClient = grpc.ServerStreamingClient[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Execution_ExecuteServer ¶
type Execution_ExecuteServer = grpc.ServerStreamingServer[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Execution_WaitExecutionClient ¶
type Execution_WaitExecutionClient = grpc.ServerStreamingClient[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Execution_WaitExecutionServer ¶
type Execution_WaitExecutionServer = grpc.ServerStreamingServer[ExecuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedExecutionServer ¶
type UnimplementedExecutionServer struct{}
UnimplementedExecutionServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedExecutionServer) Execute ¶
func (UnimplementedExecutionServer) Execute(*ExecuteRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
func (UnimplementedExecutionServer) WaitExecution ¶
func (UnimplementedExecutionServer) WaitExecution(*WaitExecutionRequest, grpc.ServerStreamingServer[ExecuteResponse]) error
type UnsafeExecutionServer ¶
type UnsafeExecutionServer interface {
// contains filtered or unexported methods
}
UnsafeExecutionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecutionServer will result in compilation errors.
type WaitExecutionRequest ¶
type WaitExecutionRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*WaitExecutionRequest) Descriptor
deprecated
func (*WaitExecutionRequest) Descriptor() ([]byte, []int)
Deprecated: Use WaitExecutionRequest.ProtoReflect.Descriptor instead.
func (*WaitExecutionRequest) GetName ¶
func (x *WaitExecutionRequest) GetName() string
func (*WaitExecutionRequest) ProtoMessage ¶
func (*WaitExecutionRequest) ProtoMessage()
func (*WaitExecutionRequest) ProtoReflect ¶
func (x *WaitExecutionRequest) ProtoReflect() protoreflect.Message
func (*WaitExecutionRequest) Reset ¶
func (x *WaitExecutionRequest) Reset()
func (*WaitExecutionRequest) String ¶
func (x *WaitExecutionRequest) String() string