Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer)
- type CheckReadinessRequest
- func (*CheckReadinessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckReadinessRequest) GetPath() string
- func (*CheckReadinessRequest) ProtoMessage()
- func (x *CheckReadinessRequest) ProtoReflect() protoreflect.Message
- func (x *CheckReadinessRequest) Reset()
- func (x *CheckReadinessRequest) String() string
- type RunRequest
- func (*RunRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RunRequest) GetArguments() []string
- func (x *RunRequest) GetEnvironmentVariables() map[string]string
- func (x *RunRequest) GetInputRootDirectory() string
- func (x *RunRequest) GetServerLogsDirectory() string
- func (x *RunRequest) GetStderrPath() string
- func (x *RunRequest) GetStdoutPath() string
- func (x *RunRequest) GetTemporaryDirectory() string
- func (x *RunRequest) GetWorkingDirectory() string
- func (*RunRequest) ProtoMessage()
- func (x *RunRequest) ProtoReflect() protoreflect.Message
- func (x *RunRequest) Reset()
- func (x *RunRequest) String() string
- type RunResponse
- func (*RunResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunResponse) GetExitCode() int64
- func (x *RunResponse) GetResourceUsage() []*anypb.Any
- func (*RunResponse) ProtoMessage()
- func (x *RunResponse) ProtoReflect() protoreflect.Message
- func (x *RunResponse) Reset()
- func (x *RunResponse) String() string
- type RunnerClient
- type RunnerServer
- type UnimplementedRunnerServer
- type UnsafeRunnerServer
Constants ¶
const ( Runner_CheckReadiness_FullMethodName = "/buildbarn.runner.Runner/CheckReadiness" Runner_Run_FullMethodName = "/buildbarn.runner.Runner/Run" )
Variables ¶
var File_pkg_proto_runner_runner_proto protoreflect.FileDescriptor
var Runner_ServiceDesc = grpc.ServiceDesc{ ServiceName: "buildbarn.runner.Runner", HandlerType: (*RunnerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckReadiness", Handler: _Runner_CheckReadiness_Handler, }, { MethodName: "Run", Handler: _Runner_Run_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/runner/runner.proto", }
Runner_ServiceDesc is the grpc.ServiceDesc for Runner service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRunnerServer ¶
func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer)
Types ¶
type CheckReadinessRequest ¶
type CheckReadinessRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*CheckReadinessRequest) Descriptor
deprecated
func (*CheckReadinessRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckReadinessRequest.ProtoReflect.Descriptor instead.
func (*CheckReadinessRequest) GetPath ¶
func (x *CheckReadinessRequest) GetPath() string
func (*CheckReadinessRequest) ProtoMessage ¶
func (*CheckReadinessRequest) ProtoMessage()
func (*CheckReadinessRequest) ProtoReflect ¶
func (x *CheckReadinessRequest) ProtoReflect() protoreflect.Message
func (*CheckReadinessRequest) Reset ¶
func (x *CheckReadinessRequest) Reset()
func (*CheckReadinessRequest) String ¶
func (x *CheckReadinessRequest) String() string
type RunRequest ¶
type RunRequest struct { Arguments []string `protobuf:"bytes,1,rep,name=arguments,proto3" json:"arguments,omitempty"` EnvironmentVariables map[string]string `` /* 209-byte string literal not displayed */ WorkingDirectory string `protobuf:"bytes,3,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"` StdoutPath string `protobuf:"bytes,4,opt,name=stdout_path,json=stdoutPath,proto3" json:"stdout_path,omitempty"` StderrPath string `protobuf:"bytes,5,opt,name=stderr_path,json=stderrPath,proto3" json:"stderr_path,omitempty"` InputRootDirectory string `protobuf:"bytes,6,opt,name=input_root_directory,json=inputRootDirectory,proto3" json:"input_root_directory,omitempty"` TemporaryDirectory string `protobuf:"bytes,7,opt,name=temporary_directory,json=temporaryDirectory,proto3" json:"temporary_directory,omitempty"` ServerLogsDirectory string `protobuf:"bytes,8,opt,name=server_logs_directory,json=serverLogsDirectory,proto3" json:"server_logs_directory,omitempty"` // contains filtered or unexported fields }
func (*RunRequest) Descriptor
deprecated
func (*RunRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.
func (*RunRequest) GetArguments ¶
func (x *RunRequest) GetArguments() []string
func (*RunRequest) GetEnvironmentVariables ¶
func (x *RunRequest) GetEnvironmentVariables() map[string]string
func (*RunRequest) GetInputRootDirectory ¶
func (x *RunRequest) GetInputRootDirectory() string
func (*RunRequest) GetServerLogsDirectory ¶
func (x *RunRequest) GetServerLogsDirectory() string
func (*RunRequest) GetStderrPath ¶
func (x *RunRequest) GetStderrPath() string
func (*RunRequest) GetStdoutPath ¶
func (x *RunRequest) GetStdoutPath() string
func (*RunRequest) GetTemporaryDirectory ¶
func (x *RunRequest) GetTemporaryDirectory() string
func (*RunRequest) GetWorkingDirectory ¶
func (x *RunRequest) GetWorkingDirectory() string
func (*RunRequest) ProtoMessage ¶
func (*RunRequest) ProtoMessage()
func (*RunRequest) ProtoReflect ¶
func (x *RunRequest) ProtoReflect() protoreflect.Message
func (*RunRequest) Reset ¶
func (x *RunRequest) Reset()
func (*RunRequest) String ¶
func (x *RunRequest) String() string
type RunResponse ¶
type RunResponse struct { ExitCode int64 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` ResourceUsage []*anypb.Any `protobuf:"bytes,2,rep,name=resource_usage,json=resourceUsage,proto3" json:"resource_usage,omitempty"` // contains filtered or unexported fields }
func (*RunResponse) Descriptor
deprecated
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) GetExitCode ¶
func (x *RunResponse) GetExitCode() int64
func (*RunResponse) GetResourceUsage ¶
func (x *RunResponse) GetResourceUsage() []*anypb.Any
func (*RunResponse) ProtoMessage ¶
func (*RunResponse) ProtoMessage()
func (*RunResponse) ProtoReflect ¶
func (x *RunResponse) ProtoReflect() protoreflect.Message
func (*RunResponse) Reset ¶
func (x *RunResponse) Reset()
func (*RunResponse) String ¶
func (x *RunResponse) String() string
type RunnerClient ¶
type RunnerClient interface { CheckReadiness(ctx context.Context, in *CheckReadinessRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error) }
RunnerClient is the client API for Runner 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 NewRunnerClient ¶
func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient
type RunnerServer ¶
type RunnerServer interface { CheckReadiness(context.Context, *CheckReadinessRequest) (*emptypb.Empty, error) Run(context.Context, *RunRequest) (*RunResponse, error) }
RunnerServer is the server API for Runner service. All implementations should embed UnimplementedRunnerServer for forward compatibility
type UnimplementedRunnerServer ¶
type UnimplementedRunnerServer struct { }
UnimplementedRunnerServer should be embedded to have forward compatible implementations.
func (UnimplementedRunnerServer) CheckReadiness ¶
func (UnimplementedRunnerServer) CheckReadiness(context.Context, *CheckReadinessRequest) (*emptypb.Empty, error)
func (UnimplementedRunnerServer) Run ¶
func (UnimplementedRunnerServer) Run(context.Context, *RunRequest) (*RunResponse, error)
type UnsafeRunnerServer ¶
type UnsafeRunnerServer interface {
// contains filtered or unexported methods
}
UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RunnerServer will result in compilation errors.