Back to godoc.org

Package exec

v0.0.15
Latest Go to latest

The latest major version is .

Published: Jul 31, 2020 | License: BSD-3-Clause | Module: go.chromium.org/goma/server

Index

Variables

var (
	ExecServiceApplicationError_name = map[int32]string{
		-1: "BAD_REQUEST",
		0:  "EXEC_OK",
		1:  "EXECUTABLE_NOT_READY",
		2:  "DISK_EXCEEDED",
		3:  "EXEC_INTERNAL_ERROR",
		4:  "EXECUTOR_IS_LOADING",
		5:  "EXECUTOR_MEMORY_NOT_ENOUGH",
	}
	ExecServiceApplicationError_value = map[string]int32{
		"BAD_REQUEST":                -1,
		"EXEC_OK":                    0,
		"EXECUTABLE_NOT_READY":       1,
		"DISK_EXCEEDED":              2,
		"EXEC_INTERNAL_ERROR":        3,
		"EXECUTOR_IS_LOADING":        4,
		"EXECUTOR_MEMORY_NOT_ENOUGH": 5,
	}
)

Enum value maps for ExecServiceApplicationError.

var File_exec_exec_service_proto protoreflect.FileDescriptor

func RegisterExecServiceServer

func RegisterExecServiceServer(s *grpc.Server, srv ExecServiceServer)

type ExecServiceApplicationError

type ExecServiceApplicationError int32

TODO: reconsider good error codes.

const (
	ExecServiceApplicationError_BAD_REQUEST                ExecServiceApplicationError = -1
	ExecServiceApplicationError_EXEC_OK                    ExecServiceApplicationError = 0
	ExecServiceApplicationError_EXECUTABLE_NOT_READY       ExecServiceApplicationError = 1
	ExecServiceApplicationError_DISK_EXCEEDED              ExecServiceApplicationError = 2
	ExecServiceApplicationError_EXEC_INTERNAL_ERROR        ExecServiceApplicationError = 3
	ExecServiceApplicationError_EXECUTOR_IS_LOADING        ExecServiceApplicationError = 4
	ExecServiceApplicationError_EXECUTOR_MEMORY_NOT_ENOUGH ExecServiceApplicationError = 5
)

func (ExecServiceApplicationError) Descriptor

func (ExecServiceApplicationError) Descriptor() protoreflect.EnumDescriptor

func (ExecServiceApplicationError) Enum

func (x ExecServiceApplicationError) Enum() *ExecServiceApplicationError

func (ExecServiceApplicationError) EnumDescriptor

func (ExecServiceApplicationError) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExecServiceApplicationError.Descriptor instead.

func (ExecServiceApplicationError) Number

func (x ExecServiceApplicationError) Number() protoreflect.EnumNumber

func (ExecServiceApplicationError) String

func (x ExecServiceApplicationError) String() string

func (ExecServiceApplicationError) Type

func (ExecServiceApplicationError) Type() protoreflect.EnumType

func (*ExecServiceApplicationError) UnmarshalJSON

func (x *ExecServiceApplicationError) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ExecServiceClient

type ExecServiceClient interface {
	Exec(ctx context.Context, in *api.ExecReq, opts ...grpc.CallOption) (*api.ExecResp, error)
}

ExecServiceClient is the client API for ExecService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ExecServiceServer

type ExecServiceServer interface {
	Exec(context.Context, *api.ExecReq) (*api.ExecResp, error)
}

ExecServiceServer is the server API for ExecService service.

type UnimplementedExecServiceServer

type UnimplementedExecServiceServer struct {
}

UnimplementedExecServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedExecServiceServer) Exec

func (*UnimplementedExecServiceServer) Exec(context.Context, *api.ExecReq) (*api.ExecResp, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier