Documentation ¶
Overview ¶
Package tes is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func Base64Encode(t *Task) (string, error)
- func GenerateID() string
- func GetPageSize(reqSize int32) int
- func Hash(task *Task) (string, error)
- func InitTask(task *Task, overwrite bool) error
- func MarshalToString(t *Task) (string, error)
- func RegisterTaskServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTaskServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaskServiceClient) error
- func RegisterTaskServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTaskServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaskServiceServer) error
- func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)
- func RunnableState(s State) bool
- func TerminalState(s State) bool
- func ValidateTransition(from, to State) error
- type CancelTaskRequest
- type CancelTaskResponse
- type Client
- func (c *Client) CancelTask(ctx context.Context, req *CancelTaskRequest) (*CancelTaskResponse, error)
- func (c *Client) CreateTask(ctx context.Context, task *Task) (*CreateTaskResponse, error)
- func (c *Client) GetServiceInfo(ctx context.Context, req *GetServiceInfoRequest) (*ServiceInfo, error)
- func (c *Client) GetTask(ctx context.Context, req *GetTaskRequest) (*Task, error)
- func (c *Client) ListTasks(ctx context.Context, req *ListTasksRequest) (*ListTasksResponse, error)
- func (c *Client) WaitForTask(ctx context.Context, taskIDs ...string) error
- type CreateTaskResponse
- type Executor
- func (*Executor) Descriptor() ([]byte, []int)deprecated
- func (x *Executor) GetCommand() []string
- func (x *Executor) GetEnv() map[string]string
- func (x *Executor) GetIgnoreError() bool
- func (x *Executor) GetImage() string
- func (x *Executor) GetStderr() string
- func (x *Executor) GetStdin() string
- func (x *Executor) GetStdout() string
- func (x *Executor) GetWorkdir() string
- func (*Executor) ProtoMessage()
- func (x *Executor) ProtoReflect() protoreflect.Message
- func (x *Executor) Reset()
- func (x *Executor) String() string
- type ExecutorBasic
- func (*ExecutorBasic) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutorBasic) GetCommand() []string
- func (x *ExecutorBasic) GetEnv() map[string]string
- func (x *ExecutorBasic) GetIgnoreError() bool
- func (x *ExecutorBasic) GetImage() string
- func (x *ExecutorBasic) GetStdin() string
- func (x *ExecutorBasic) GetWorkdir() string
- func (*ExecutorBasic) ProtoMessage()
- func (x *ExecutorBasic) ProtoReflect() protoreflect.Message
- func (x *ExecutorBasic) Reset()
- func (x *ExecutorBasic) String() string
- type ExecutorLog
- func (*ExecutorLog) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutorLog) GetEndTime() string
- func (x *ExecutorLog) GetExitCode() int32
- func (x *ExecutorLog) GetStartTime() string
- func (x *ExecutorLog) GetStderr() string
- func (x *ExecutorLog) GetStdout() string
- func (*ExecutorLog) ProtoMessage()
- func (x *ExecutorLog) ProtoReflect() protoreflect.Message
- func (x *ExecutorLog) Reset()
- func (x *ExecutorLog) String() string
- type FileType
- type GetServiceInfoRequest
- type GetTaskRequest
- func (*GetTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTaskRequest) GetId() string
- func (x *GetTaskRequest) GetView() string
- func (*GetTaskRequest) ProtoMessage()
- func (x *GetTaskRequest) ProtoReflect() protoreflect.Message
- func (x *GetTaskRequest) Reset()
- func (x *GetTaskRequest) String() string
- type Input
- func (*Input) Descriptor() ([]byte, []int)deprecated
- func (x *Input) GetContent() string
- func (x *Input) GetDescription() string
- func (x *Input) GetName() string
- func (x *Input) GetPath() string
- func (x *Input) GetStreamable() bool
- func (x *Input) GetType() FileType
- func (x *Input) GetUrl() string
- func (*Input) ProtoMessage()
- func (x *Input) ProtoReflect() protoreflect.Message
- func (x *Input) Reset()
- func (x *Input) String() string
- type InputBasic
- func (*InputBasic) Descriptor() ([]byte, []int)deprecated
- func (x *InputBasic) GetDescription() string
- func (x *InputBasic) GetName() string
- func (x *InputBasic) GetPath() string
- func (x *InputBasic) GetStreamable() bool
- func (x *InputBasic) GetType() FileType
- func (x *InputBasic) GetUrl() string
- func (*InputBasic) ProtoMessage()
- func (x *InputBasic) ProtoReflect() protoreflect.Message
- func (x *InputBasic) Reset()
- func (x *InputBasic) String() string
- type ListTasksRequest
- func (*ListTasksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksRequest) GetNamePrefix() string
- func (x *ListTasksRequest) GetPageSize() int32
- func (x *ListTasksRequest) GetPageToken() string
- func (x *ListTasksRequest) GetState() State
- func (x *ListTasksRequest) GetTagKey() []string
- func (x *ListTasksRequest) GetTagValue() []string
- func (x *ListTasksRequest) GetTags() map[string]string
- func (x *ListTasksRequest) GetView() string
- func (*ListTasksRequest) ProtoMessage()
- func (x *ListTasksRequest) ProtoReflect() protoreflect.Message
- func (x *ListTasksRequest) Reset()
- func (x *ListTasksRequest) String() string
- type ListTasksResponse
- func (*ListTasksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksResponse) GetNextPageToken() string
- func (x *ListTasksResponse) GetTasks() []*Task
- func (*ListTasksResponse) ProtoMessage()
- func (x *ListTasksResponse) ProtoReflect() protoreflect.Message
- func (x *ListTasksResponse) Reset()
- func (x *ListTasksResponse) String() string
- type ListTasksResponseBasic
- func (*ListTasksResponseBasic) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksResponseBasic) GetNextPageToken() string
- func (x *ListTasksResponseBasic) GetTasks() []*TaskBasic
- func (*ListTasksResponseBasic) ProtoMessage()
- func (x *ListTasksResponseBasic) ProtoReflect() protoreflect.Message
- func (x *ListTasksResponseBasic) Reset()
- func (x *ListTasksResponseBasic) String() string
- type ListTasksResponseMin
- func (*ListTasksResponseMin) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksResponseMin) GetNextPageToken() string
- func (x *ListTasksResponseMin) GetTasks() []*TaskMin
- func (*ListTasksResponseMin) ProtoMessage()
- func (x *ListTasksResponseMin) ProtoReflect() protoreflect.Message
- func (x *ListTasksResponseMin) Reset()
- func (x *ListTasksResponseMin) String() string
- type Output
- func (*Output) Descriptor() ([]byte, []int)deprecated
- func (x *Output) GetDescription() string
- func (x *Output) GetName() string
- func (x *Output) GetPath() string
- func (x *Output) GetPathPrefix() string
- func (x *Output) GetType() FileType
- func (x *Output) GetUrl() string
- func (*Output) ProtoMessage()
- func (x *Output) ProtoReflect() protoreflect.Message
- func (x *Output) Reset()
- func (x *Output) String() string
- type OutputFileLog
- func (*OutputFileLog) Descriptor() ([]byte, []int)deprecated
- func (x *OutputFileLog) GetPath() string
- func (x *OutputFileLog) GetSizeBytes() string
- func (x *OutputFileLog) GetUrl() string
- func (*OutputFileLog) ProtoMessage()
- func (x *OutputFileLog) ProtoReflect() protoreflect.Message
- func (x *OutputFileLog) Reset()
- func (x *OutputFileLog) String() string
- type ReadOnlyClient
- type ReadOnlyServer
- type Resources
- func (*Resources) Descriptor() ([]byte, []int)deprecated
- func (x *Resources) GetBackendParameters() map[string]string
- func (x *Resources) GetBackendParametersStrict() bool
- func (x *Resources) GetCpuCores() int32
- func (x *Resources) GetDiskGb() float64
- func (x *Resources) GetPreemptible() bool
- func (x *Resources) GetRamGb() float64
- func (x *Resources) GetZones() []string
- func (*Resources) ProtoMessage()
- func (x *Resources) ProtoReflect() protoreflect.Message
- func (x *Resources) Reset()
- func (x *Resources) String() string
- type ServiceInfo
- func (*ServiceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceInfo) GetContactUrl() string
- func (x *ServiceInfo) GetCreatedAt() string
- func (x *ServiceInfo) GetDescription() string
- func (x *ServiceInfo) GetDocumentationUrl() string
- func (x *ServiceInfo) GetEnvironment() string
- func (x *ServiceInfo) GetId() string
- func (x *ServiceInfo) GetName() string
- func (x *ServiceInfo) GetOrganization() map[string]string
- func (x *ServiceInfo) GetStorage() []string
- func (x *ServiceInfo) GetTesResourcesBackendParameters() []string
- func (x *ServiceInfo) GetType() *ServiceType
- func (x *ServiceInfo) GetUpdatedAt() string
- func (x *ServiceInfo) GetVersion() string
- func (*ServiceInfo) ProtoMessage()
- func (x *ServiceInfo) ProtoReflect() protoreflect.Message
- func (x *ServiceInfo) Reset()
- func (x *ServiceInfo) String() string
- type ServiceType
- func (*ServiceType) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceType) GetArtifact() string
- func (x *ServiceType) GetGroup() string
- func (x *ServiceType) GetVersion() string
- func (*ServiceType) ProtoMessage()
- func (x *ServiceType) ProtoReflect() protoreflect.Message
- func (x *ServiceType) Reset()
- func (x *ServiceType) String() string
- type State
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (task *Task) GetBasicView() *Task
- func (x *Task) GetCreationTime() string
- func (x *Task) GetDescription() string
- func (task *Task) GetExecLog(attempt int, i int) *ExecutorLog
- func (x *Task) GetExecutors() []*Executor
- func (x *Task) GetId() string
- func (x *Task) GetInputs() []*Input
- func (x *Task) GetLogs() []*TaskLog
- func (task *Task) GetMinimalView() *Task
- func (x *Task) GetName() string
- func (x *Task) GetOutputs() []*Output
- func (x *Task) GetResources() *Resources
- func (x *Task) GetState() State
- func (x *Task) GetTags() map[string]string
- func (task *Task) GetTaskLog(i int) *TaskLog
- func (x *Task) GetVolumes() []string
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type TaskBasic
- func (*TaskBasic) Descriptor() ([]byte, []int)deprecated
- func (x *TaskBasic) GetCreationTime() string
- func (x *TaskBasic) GetDescription() string
- func (x *TaskBasic) GetExecutors() []*ExecutorBasic
- func (x *TaskBasic) GetId() string
- func (x *TaskBasic) GetInputs() []*InputBasic
- func (x *TaskBasic) GetLogs() []*TaskLogBasic
- func (x *TaskBasic) GetName() string
- func (x *TaskBasic) GetOutputs() []*Output
- func (x *TaskBasic) GetResources() *Resources
- func (x *TaskBasic) GetState() State
- func (x *TaskBasic) GetTags() map[string]string
- func (x *TaskBasic) GetVolumes() []string
- func (*TaskBasic) ProtoMessage()
- func (x *TaskBasic) ProtoReflect() protoreflect.Message
- func (x *TaskBasic) Reset()
- func (x *TaskBasic) String() string
- type TaskLog
- func (*TaskLog) Descriptor() ([]byte, []int)deprecated
- func (x *TaskLog) GetEndTime() string
- func (x *TaskLog) GetLogs() []*ExecutorLog
- func (x *TaskLog) GetMetadata() map[string]string
- func (x *TaskLog) GetOutputs() []*OutputFileLog
- func (x *TaskLog) GetStartTime() string
- func (x *TaskLog) GetSystemLogs() []string
- func (*TaskLog) ProtoMessage()
- func (x *TaskLog) ProtoReflect() protoreflect.Message
- func (x *TaskLog) Reset()
- func (x *TaskLog) String() string
- type TaskLogBasic
- func (*TaskLogBasic) Descriptor() ([]byte, []int)deprecated
- func (x *TaskLogBasic) GetEndTime() string
- func (x *TaskLogBasic) GetLogs() []*ExecutorLog
- func (x *TaskLogBasic) GetMetadata() map[string]string
- func (x *TaskLogBasic) GetOutputs() []*OutputFileLog
- func (x *TaskLogBasic) GetStartTime() string
- func (*TaskLogBasic) ProtoMessage()
- func (x *TaskLogBasic) ProtoReflect() protoreflect.Message
- func (x *TaskLogBasic) Reset()
- func (x *TaskLogBasic) String() string
- type TaskMin
- type TaskServiceClient
- type TaskServiceServer
- type TransitionError
- type UnimplementedTaskServiceServer
- func (UnimplementedTaskServiceServer) CancelTask(context.Context, *CancelTaskRequest) (*CancelTaskResponse, error)
- func (UnimplementedTaskServiceServer) CreateTask(context.Context, *Task) (*CreateTaskResponse, error)
- func (UnimplementedTaskServiceServer) GetServiceInfo(context.Context, *GetServiceInfoRequest) (*ServiceInfo, error)
- func (UnimplementedTaskServiceServer) GetTask(context.Context, *GetTaskRequest) (*Task, error)
- func (UnimplementedTaskServiceServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
- type UnsafeTaskServiceServer
- type ValidationError
- type View
Constants ¶
const ( Unknown = State_UNKNOWN Queued = State_QUEUED Running = State_RUNNING Paused = State_PAUSED Complete = State_COMPLETE ExecutorError = State_EXECUTOR_ERROR SystemError = State_SYSTEM_ERROR Canceled = State_CANCELED Initializing = State_INITIALIZING )
State variables for convenience
const ( TaskService_ListTasks_FullMethodName = "/tes.TaskService/ListTasks" TaskService_CreateTask_FullMethodName = "/tes.TaskService/CreateTask" TaskService_GetTask_FullMethodName = "/tes.TaskService/GetTask" TaskService_CancelTask_FullMethodName = "/tes.TaskService/CancelTask" TaskService_GetServiceInfo_FullMethodName = "/tes.TaskService/GetServiceInfo" )
const ( Minimal = View_MINIMAL Basic = View_BASIC Full = View_FULL File = FileType_FILE Directory = FileType_DIRECTORY )
Shorthand for task views
Variables ¶
var ( State_name = map[int32]string{ 0: "UNKNOWN", 1: "QUEUED", 2: "INITIALIZING", 3: "RUNNING", 4: "PAUSED", 5: "COMPLETE", 6: "EXECUTOR_ERROR", 7: "SYSTEM_ERROR", 8: "CANCELED", 9: "PREEMPTED", 10: "CANCELING", } State_value = map[string]int32{ "UNKNOWN": 0, "QUEUED": 1, "INITIALIZING": 2, "RUNNING": 3, "PAUSED": 4, "COMPLETE": 5, "EXECUTOR_ERROR": 6, "SYSTEM_ERROR": 7, "CANCELED": 8, "PREEMPTED": 9, "CANCELING": 10, } )
Enum value maps for State.
var ( FileType_name = map[int32]string{ 0: "FILE", 1: "DIRECTORY", } FileType_value = map[string]int32{ "FILE": 0, "DIRECTORY": 1, } )
Enum value maps for FileType.
var ( View_name = map[int32]string{ 0: "MINIMAL", 1: "BASIC", 2: "FULL", } View_value = map[string]int32{ "MINIMAL": 0, "BASIC": 1, "FULL": 2, } )
Enum value maps for View.
var ErrConcurrentStateChange = errors.New("Concurrent stage change")
var ErrNotFound = errors.New("task not found")
ErrNotFound is returned when a task is not found.
var File_tes_proto protoreflect.FileDescriptor
var Marshaler = protojson.MarshalOptions{
Indent: " ",
}
Marshaler marshals tasks to indented JSON.
var TaskService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tes.TaskService", HandlerType: (*TaskServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListTasks", Handler: _TaskService_ListTasks_Handler, }, { MethodName: "CreateTask", Handler: _TaskService_CreateTask_Handler, }, { MethodName: "GetTask", Handler: _TaskService_GetTask_Handler, }, { MethodName: "CancelTask", Handler: _TaskService_CancelTask_Handler, }, { MethodName: "GetServiceInfo", Handler: _TaskService_GetServiceInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tes.proto", }
TaskService_ServiceDesc is the grpc.ServiceDesc for TaskService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func Base64Encode ¶
Base64Encode encodes a task as a base64 encoded string
func GenerateID ¶
func GenerateID() string
GenerateID generates a task ID string. IDs are globally unique and sortable.
func GetPageSize ¶
GetPageSize takes in the page size from a request and returns a new page size taking into account the minimum, maximum and default as documented in the TES spec.
func Hash ¶
Hash returns a hash of the task, for caching. The hash is calculated only from fields which affect execution, so fields such as Name, Description, Tags, etc. are ignored.
func InitTask ¶
InitTask intializes task fields which are commonly set by CreateTask, such as Id, CreationTime, State, etc. If the task fails validation, an error is returned. See Validate(). The given task is modified.
If "overwrite" is true, the fields Id, State, and CreationTime will always be overwritten, even if already set, otherwise they will only be set if they are empty.
func MarshalToString ¶
MarshalToString marshals a task to an indented JSON string.
func RegisterTaskServiceHandler ¶
func RegisterTaskServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTaskServiceHandler registers the http handlers for service TaskService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTaskServiceHandlerClient ¶
func RegisterTaskServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaskServiceClient) error
RegisterTaskServiceHandlerClient registers the http handlers for service TaskService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TaskServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TaskServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TaskServiceClient" to call the correct interceptors.
func RegisterTaskServiceHandlerFromEndpoint ¶
func RegisterTaskServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTaskServiceHandlerFromEndpoint is same as RegisterTaskServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTaskServiceHandlerServer ¶
func RegisterTaskServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaskServiceServer) error
RegisterTaskServiceHandlerServer registers the http handlers for service TaskService to "mux". UnaryRPC :call TaskServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTaskServiceHandlerFromEndpoint instead.
func RegisterTaskServiceServer ¶
func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)
func RunnableState ¶
RunnableState returns true if the state is RUNNING or INITIALIZING
func TerminalState ¶
TerminalState returns true if the state is COMPLETE, ERROR, SYSTEM_ERROR, or CANCELED
func ValidateTransition ¶
ValidateTransition validates a task state transition. Returns a TransitionError if the transition is not valid.
Types ¶
type CancelTaskRequest ¶
type CancelTaskRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CancelTaskRequest) Descriptor
deprecated
func (*CancelTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelTaskRequest.ProtoReflect.Descriptor instead.
func (*CancelTaskRequest) GetId ¶
func (x *CancelTaskRequest) GetId() string
func (*CancelTaskRequest) ProtoMessage ¶
func (*CancelTaskRequest) ProtoMessage()
func (*CancelTaskRequest) ProtoReflect ¶
func (x *CancelTaskRequest) ProtoReflect() protoreflect.Message
func (*CancelTaskRequest) Reset ¶
func (x *CancelTaskRequest) Reset()
func (*CancelTaskRequest) String ¶
func (x *CancelTaskRequest) String() string
type CancelTaskResponse ¶
type CancelTaskResponse struct {
// contains filtered or unexported fields
}
func (*CancelTaskResponse) Descriptor
deprecated
func (*CancelTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelTaskResponse.ProtoReflect.Descriptor instead.
func (*CancelTaskResponse) ProtoMessage ¶
func (*CancelTaskResponse) ProtoMessage()
func (*CancelTaskResponse) ProtoReflect ¶
func (x *CancelTaskResponse) ProtoReflect() protoreflect.Message
func (*CancelTaskResponse) Reset ¶
func (x *CancelTaskResponse) Reset()
func (*CancelTaskResponse) String ¶
func (x *CancelTaskResponse) String() string
type Client ¶
type Client struct { Marshaler *protojson.MarshalOptions User string Password string // contains filtered or unexported fields }
Client represents the HTTP Task client.
func NewClient ¶
NewClient returns a new HTTP client for accessing Create/List/Get/Cancel Task endpoints. "address" is the address of the TES server.
func (*Client) CancelTask ¶
func (c *Client) CancelTask(ctx context.Context, req *CancelTaskRequest) (*CancelTaskResponse, error)
CancelTask POSTs to /v1/tasks/{id}:cancel
func (*Client) CreateTask ¶
CreateTask POSTs a Task message to /v1/tasks
func (*Client) GetServiceInfo ¶
func (c *Client) GetServiceInfo(ctx context.Context, req *GetServiceInfoRequest) (*ServiceInfo, error)
GetServiceInfo returns result of GET /v1/service-info
func (*Client) ListTasks ¶
func (c *Client) ListTasks(ctx context.Context, req *ListTasksRequest) (*ListTasksResponse, error)
ListTasks returns the result of GET /v1/tasks
type CreateTaskResponse ¶
type CreateTaskResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateTaskResponse) Descriptor
deprecated
func (*CreateTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTaskResponse.ProtoReflect.Descriptor instead.
func (*CreateTaskResponse) GetId ¶
func (x *CreateTaskResponse) GetId() string
func (*CreateTaskResponse) ProtoMessage ¶
func (*CreateTaskResponse) ProtoMessage()
func (*CreateTaskResponse) ProtoReflect ¶
func (x *CreateTaskResponse) ProtoReflect() protoreflect.Message
func (*CreateTaskResponse) Reset ¶
func (x *CreateTaskResponse) Reset()
func (*CreateTaskResponse) String ¶
func (x *CreateTaskResponse) String() string
type Executor ¶
type Executor struct { Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"` Env map[string]string `` /* 147-byte string literal not displayed */ IgnoreError bool `protobuf:"varint,3,opt,name=ignore_error,json=ignoreError,proto3" json:"ignore_error,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Stderr string `protobuf:"bytes,5,opt,name=stderr,proto3" json:"stderr,omitempty"` Stdin string `protobuf:"bytes,6,opt,name=stdin,proto3" json:"stdin,omitempty"` Stdout string `protobuf:"bytes,7,opt,name=stdout,proto3" json:"stdout,omitempty"` Workdir string `protobuf:"bytes,8,opt,name=workdir,proto3" json:"workdir,omitempty"` // contains filtered or unexported fields }
func (*Executor) Descriptor
deprecated
func (*Executor) GetCommand ¶
func (*Executor) GetIgnoreError ¶
func (*Executor) GetWorkdir ¶
func (*Executor) ProtoMessage ¶
func (*Executor) ProtoMessage()
func (*Executor) ProtoReflect ¶
func (x *Executor) ProtoReflect() protoreflect.Message
type ExecutorBasic ¶
type ExecutorBasic struct { Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"` Env map[string]string `` /* 147-byte string literal not displayed */ IgnoreError bool `protobuf:"varint,3,opt,name=ignore_error,json=ignoreError,proto3" json:"ignore_error,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` Workdir string `protobuf:"bytes,6,opt,name=workdir,proto3" json:"workdir,omitempty"` // contains filtered or unexported fields }
func (*ExecutorBasic) Descriptor
deprecated
func (*ExecutorBasic) Descriptor() ([]byte, []int)
Deprecated: Use ExecutorBasic.ProtoReflect.Descriptor instead.
func (*ExecutorBasic) GetCommand ¶
func (x *ExecutorBasic) GetCommand() []string
func (*ExecutorBasic) GetEnv ¶
func (x *ExecutorBasic) GetEnv() map[string]string
func (*ExecutorBasic) GetIgnoreError ¶
func (x *ExecutorBasic) GetIgnoreError() bool
func (*ExecutorBasic) GetImage ¶
func (x *ExecutorBasic) GetImage() string
func (*ExecutorBasic) GetStdin ¶
func (x *ExecutorBasic) GetStdin() string
func (*ExecutorBasic) GetWorkdir ¶
func (x *ExecutorBasic) GetWorkdir() string
func (*ExecutorBasic) ProtoMessage ¶
func (*ExecutorBasic) ProtoMessage()
func (*ExecutorBasic) ProtoReflect ¶
func (x *ExecutorBasic) ProtoReflect() protoreflect.Message
func (*ExecutorBasic) Reset ¶
func (x *ExecutorBasic) Reset()
func (*ExecutorBasic) String ¶
func (x *ExecutorBasic) String() string
type ExecutorLog ¶
type ExecutorLog struct { EndTime string `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` StartTime string `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` Stderr string `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"` Stdout string `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"` // contains filtered or unexported fields }
func (*ExecutorLog) Descriptor
deprecated
func (*ExecutorLog) Descriptor() ([]byte, []int)
Deprecated: Use ExecutorLog.ProtoReflect.Descriptor instead.
func (*ExecutorLog) GetEndTime ¶
func (x *ExecutorLog) GetEndTime() string
func (*ExecutorLog) GetExitCode ¶
func (x *ExecutorLog) GetExitCode() int32
func (*ExecutorLog) GetStartTime ¶
func (x *ExecutorLog) GetStartTime() string
func (*ExecutorLog) GetStderr ¶
func (x *ExecutorLog) GetStderr() string
func (*ExecutorLog) GetStdout ¶
func (x *ExecutorLog) GetStdout() string
func (*ExecutorLog) ProtoMessage ¶
func (*ExecutorLog) ProtoMessage()
func (*ExecutorLog) ProtoReflect ¶
func (x *ExecutorLog) ProtoReflect() protoreflect.Message
func (*ExecutorLog) Reset ¶
func (x *ExecutorLog) Reset()
func (*ExecutorLog) String ¶
func (x *ExecutorLog) String() string
type FileType ¶
type FileType int32
func (FileType) Descriptor ¶
func (FileType) Descriptor() protoreflect.EnumDescriptor
func (FileType) EnumDescriptor
deprecated
func (FileType) Number ¶
func (x FileType) Number() protoreflect.EnumNumber
func (FileType) Type ¶
func (FileType) Type() protoreflect.EnumType
type GetServiceInfoRequest ¶
type GetServiceInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetServiceInfoRequest) Descriptor
deprecated
func (*GetServiceInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServiceInfoRequest.ProtoReflect.Descriptor instead.
func (*GetServiceInfoRequest) ProtoMessage ¶
func (*GetServiceInfoRequest) ProtoMessage()
func (*GetServiceInfoRequest) ProtoReflect ¶
func (x *GetServiceInfoRequest) ProtoReflect() protoreflect.Message
func (*GetServiceInfoRequest) Reset ¶
func (x *GetServiceInfoRequest) Reset()
func (*GetServiceInfoRequest) String ¶
func (x *GetServiceInfoRequest) String() string
type GetTaskRequest ¶
type GetTaskRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` View string `protobuf:"bytes,2,opt,name=view,proto3" json:"view,omitempty"` // contains filtered or unexported fields }
func (*GetTaskRequest) Descriptor
deprecated
func (*GetTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead.
func (*GetTaskRequest) GetId ¶
func (x *GetTaskRequest) GetId() string
func (*GetTaskRequest) GetView ¶
func (x *GetTaskRequest) GetView() string
func (*GetTaskRequest) ProtoMessage ¶
func (*GetTaskRequest) ProtoMessage()
func (*GetTaskRequest) ProtoReflect ¶
func (x *GetTaskRequest) ProtoReflect() protoreflect.Message
func (*GetTaskRequest) Reset ¶
func (x *GetTaskRequest) Reset()
func (*GetTaskRequest) String ¶
func (x *GetTaskRequest) String() string
type Input ¶
type Input struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Streamable bool `protobuf:"varint,5,opt,name=streamable,proto3" json:"streamable,omitempty"` Type FileType `protobuf:"varint,6,opt,name=type,proto3,enum=tes.FileType" json:"type,omitempty"` Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Input) Descriptor
deprecated
func (*Input) GetContent ¶
func (*Input) GetDescription ¶
func (*Input) GetStreamable ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type InputBasic ¶
type InputBasic struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Streamable bool `protobuf:"varint,4,opt,name=streamable,proto3" json:"streamable,omitempty"` Type FileType `protobuf:"varint,5,opt,name=type,proto3,enum=tes.FileType" json:"type,omitempty"` Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*InputBasic) Descriptor
deprecated
func (*InputBasic) Descriptor() ([]byte, []int)
Deprecated: Use InputBasic.ProtoReflect.Descriptor instead.
func (*InputBasic) GetDescription ¶
func (x *InputBasic) GetDescription() string
func (*InputBasic) GetName ¶
func (x *InputBasic) GetName() string
func (*InputBasic) GetPath ¶
func (x *InputBasic) GetPath() string
func (*InputBasic) GetStreamable ¶
func (x *InputBasic) GetStreamable() bool
func (*InputBasic) GetType ¶
func (x *InputBasic) GetType() FileType
func (*InputBasic) GetUrl ¶
func (x *InputBasic) GetUrl() string
func (*InputBasic) ProtoMessage ¶
func (*InputBasic) ProtoMessage()
func (*InputBasic) ProtoReflect ¶
func (x *InputBasic) ProtoReflect() protoreflect.Message
func (*InputBasic) Reset ¶
func (x *InputBasic) Reset()
func (*InputBasic) String ¶
func (x *InputBasic) String() string
type ListTasksRequest ¶
type ListTasksRequest struct { NamePrefix string `protobuf:"bytes,1,opt,name=name_prefix,json=namePrefix,proto3" json:"name_prefix,omitempty"` State State `protobuf:"varint,2,opt,name=state,proto3,enum=tes.State" json:"state,omitempty"` TagKey []string `protobuf:"bytes,3,rep,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"` TagValue []string `protobuf:"bytes,4,rep,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` View string `protobuf:"bytes,7,opt,name=view,proto3" json:"view,omitempty"` // contains filtered or unexported fields }
func (*ListTasksRequest) Descriptor
deprecated
func (*ListTasksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.
func (*ListTasksRequest) GetNamePrefix ¶
func (x *ListTasksRequest) GetNamePrefix() string
func (*ListTasksRequest) GetPageSize ¶
func (x *ListTasksRequest) GetPageSize() int32
func (*ListTasksRequest) GetPageToken ¶
func (x *ListTasksRequest) GetPageToken() string
func (*ListTasksRequest) GetState ¶
func (x *ListTasksRequest) GetState() State
func (*ListTasksRequest) GetTagKey ¶
func (x *ListTasksRequest) GetTagKey() []string
func (*ListTasksRequest) GetTagValue ¶
func (x *ListTasksRequest) GetTagValue() []string
func (*ListTasksRequest) GetTags ¶
func (x *ListTasksRequest) GetTags() map[string]string
func (*ListTasksRequest) GetView ¶
func (x *ListTasksRequest) GetView() string
func (*ListTasksRequest) ProtoMessage ¶
func (*ListTasksRequest) ProtoMessage()
func (*ListTasksRequest) ProtoReflect ¶
func (x *ListTasksRequest) ProtoReflect() protoreflect.Message
func (*ListTasksRequest) Reset ¶
func (x *ListTasksRequest) Reset()
func (*ListTasksRequest) String ¶
func (x *ListTasksRequest) String() string
type ListTasksResponse ¶
type ListTasksResponse struct { NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*ListTasksResponse) Descriptor
deprecated
func (*ListTasksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.
func (*ListTasksResponse) GetNextPageToken ¶
func (x *ListTasksResponse) GetNextPageToken() string
func (*ListTasksResponse) GetTasks ¶
func (x *ListTasksResponse) GetTasks() []*Task
func (*ListTasksResponse) ProtoMessage ¶
func (*ListTasksResponse) ProtoMessage()
func (*ListTasksResponse) ProtoReflect ¶
func (x *ListTasksResponse) ProtoReflect() protoreflect.Message
func (*ListTasksResponse) Reset ¶
func (x *ListTasksResponse) Reset()
func (*ListTasksResponse) String ¶
func (x *ListTasksResponse) String() string
type ListTasksResponseBasic ¶
type ListTasksResponseBasic struct { NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Tasks []*TaskBasic `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*ListTasksResponseBasic) Descriptor
deprecated
func (*ListTasksResponseBasic) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksResponseBasic.ProtoReflect.Descriptor instead.
func (*ListTasksResponseBasic) GetNextPageToken ¶
func (x *ListTasksResponseBasic) GetNextPageToken() string
func (*ListTasksResponseBasic) GetTasks ¶
func (x *ListTasksResponseBasic) GetTasks() []*TaskBasic
func (*ListTasksResponseBasic) ProtoMessage ¶
func (*ListTasksResponseBasic) ProtoMessage()
func (*ListTasksResponseBasic) ProtoReflect ¶
func (x *ListTasksResponseBasic) ProtoReflect() protoreflect.Message
func (*ListTasksResponseBasic) Reset ¶
func (x *ListTasksResponseBasic) Reset()
func (*ListTasksResponseBasic) String ¶
func (x *ListTasksResponseBasic) String() string
type ListTasksResponseMin ¶
type ListTasksResponseMin struct { NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Tasks []*TaskMin `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*ListTasksResponseMin) Descriptor
deprecated
func (*ListTasksResponseMin) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksResponseMin.ProtoReflect.Descriptor instead.
func (*ListTasksResponseMin) GetNextPageToken ¶
func (x *ListTasksResponseMin) GetNextPageToken() string
func (*ListTasksResponseMin) GetTasks ¶
func (x *ListTasksResponseMin) GetTasks() []*TaskMin
func (*ListTasksResponseMin) ProtoMessage ¶
func (*ListTasksResponseMin) ProtoMessage()
func (*ListTasksResponseMin) ProtoReflect ¶
func (x *ListTasksResponseMin) ProtoReflect() protoreflect.Message
func (*ListTasksResponseMin) Reset ¶
func (x *ListTasksResponseMin) Reset()
func (*ListTasksResponseMin) String ¶
func (x *ListTasksResponseMin) String() string
type Output ¶
type Output struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` PathPrefix string `protobuf:"bytes,4,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` Type FileType `protobuf:"varint,5,opt,name=type,proto3,enum=tes.FileType" json:"type,omitempty"` Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Output) Descriptor
deprecated
func (*Output) GetDescription ¶
func (*Output) GetPathPrefix ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type OutputFileLog ¶
type OutputFileLog struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` SizeBytes string `protobuf:"bytes,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*OutputFileLog) Descriptor
deprecated
func (*OutputFileLog) Descriptor() ([]byte, []int)
Deprecated: Use OutputFileLog.ProtoReflect.Descriptor instead.
func (*OutputFileLog) GetPath ¶
func (x *OutputFileLog) GetPath() string
func (*OutputFileLog) GetSizeBytes ¶
func (x *OutputFileLog) GetSizeBytes() string
func (*OutputFileLog) GetUrl ¶
func (x *OutputFileLog) GetUrl() string
func (*OutputFileLog) ProtoMessage ¶
func (*OutputFileLog) ProtoMessage()
func (*OutputFileLog) ProtoReflect ¶
func (x *OutputFileLog) ProtoReflect() protoreflect.Message
func (*OutputFileLog) Reset ¶
func (x *OutputFileLog) Reset()
func (*OutputFileLog) String ¶
func (x *OutputFileLog) String() string
type ReadOnlyClient ¶
type ReadOnlyClient interface { ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) }
ReadOnlyClient describes the TES interface with only the Get/List tasks methods
type ReadOnlyServer ¶
type ReadOnlyServer interface { ListTasks(ctx context.Context, in *ListTasksRequest) (*ListTasksResponse, error) GetTask(ctx context.Context, in *GetTaskRequest) (*Task, error) Close() }
ReadOnlyServer describes the TES interface with only the Get/List tasks methods
type Resources ¶
type Resources struct { BackendParameters map[string]string `` /* 200-byte string literal not displayed */ BackendParametersStrict bool `` /* 133-byte string literal not displayed */ CpuCores int32 `protobuf:"varint,3,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"` DiskGb float64 `protobuf:"fixed64,4,opt,name=disk_gb,json=diskGb,proto3" json:"disk_gb,omitempty"` Preemptible bool `protobuf:"varint,5,opt,name=preemptible,proto3" json:"preemptible,omitempty"` RamGb float64 `protobuf:"fixed64,6,opt,name=ram_gb,json=ramGb,proto3" json:"ram_gb,omitempty"` Zones []string `protobuf:"bytes,7,rep,name=zones,proto3" json:"zones,omitempty"` // contains filtered or unexported fields }
func (*Resources) Descriptor
deprecated
func (*Resources) GetBackendParameters ¶
func (*Resources) GetBackendParametersStrict ¶
func (*Resources) GetCpuCores ¶
func (*Resources) GetPreemptible ¶
func (*Resources) ProtoMessage ¶
func (*Resources) ProtoMessage()
func (*Resources) ProtoReflect ¶
func (x *Resources) ProtoReflect() protoreflect.Message
type ServiceInfo ¶
type ServiceInfo struct { ContactUrl string `protobuf:"bytes,1,opt,name=contactUrl,proto3" json:"contactUrl,omitempty"` CreatedAt string `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` DocumentationUrl string `protobuf:"bytes,4,opt,name=documentationUrl,proto3" json:"documentationUrl,omitempty"` Environment string `protobuf:"bytes,5,opt,name=environment,proto3" json:"environment,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Organization map[string]string `` /* 165-byte string literal not displayed */ Storage []string `protobuf:"bytes,9,rep,name=storage,proto3" json:"storage,omitempty"` TesResourcesBackendParameters []string `` /* 151-byte string literal not displayed */ Type *ServiceType `protobuf:"bytes,11,opt,name=type,proto3" json:"type,omitempty"` UpdatedAt string `protobuf:"bytes,12,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Version string `protobuf:"bytes,13,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*ServiceInfo) Descriptor
deprecated
func (*ServiceInfo) Descriptor() ([]byte, []int)
Deprecated: Use ServiceInfo.ProtoReflect.Descriptor instead.
func (*ServiceInfo) GetContactUrl ¶
func (x *ServiceInfo) GetContactUrl() string
func (*ServiceInfo) GetCreatedAt ¶
func (x *ServiceInfo) GetCreatedAt() string
func (*ServiceInfo) GetDescription ¶
func (x *ServiceInfo) GetDescription() string
func (*ServiceInfo) GetDocumentationUrl ¶
func (x *ServiceInfo) GetDocumentationUrl() string
func (*ServiceInfo) GetEnvironment ¶
func (x *ServiceInfo) GetEnvironment() string
func (*ServiceInfo) GetId ¶
func (x *ServiceInfo) GetId() string
func (*ServiceInfo) GetName ¶
func (x *ServiceInfo) GetName() string
func (*ServiceInfo) GetOrganization ¶
func (x *ServiceInfo) GetOrganization() map[string]string
func (*ServiceInfo) GetStorage ¶
func (x *ServiceInfo) GetStorage() []string
func (*ServiceInfo) GetTesResourcesBackendParameters ¶
func (x *ServiceInfo) GetTesResourcesBackendParameters() []string
func (*ServiceInfo) GetType ¶
func (x *ServiceInfo) GetType() *ServiceType
func (*ServiceInfo) GetUpdatedAt ¶
func (x *ServiceInfo) GetUpdatedAt() string
func (*ServiceInfo) GetVersion ¶
func (x *ServiceInfo) GetVersion() string
func (*ServiceInfo) ProtoMessage ¶
func (*ServiceInfo) ProtoMessage()
func (*ServiceInfo) ProtoReflect ¶
func (x *ServiceInfo) ProtoReflect() protoreflect.Message
func (*ServiceInfo) Reset ¶
func (x *ServiceInfo) Reset()
func (*ServiceInfo) String ¶
func (x *ServiceInfo) String() string
type ServiceType ¶
type ServiceType struct { Artifact string `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*ServiceType) Descriptor
deprecated
func (*ServiceType) Descriptor() ([]byte, []int)
Deprecated: Use ServiceType.ProtoReflect.Descriptor instead.
func (*ServiceType) GetArtifact ¶
func (x *ServiceType) GetArtifact() string
func (*ServiceType) GetGroup ¶
func (x *ServiceType) GetGroup() string
func (*ServiceType) GetVersion ¶
func (x *ServiceType) GetVersion() string
func (*ServiceType) ProtoMessage ¶
func (*ServiceType) ProtoMessage()
func (*ServiceType) ProtoReflect ¶
func (x *ServiceType) ProtoReflect() protoreflect.Message
func (*ServiceType) Reset ¶
func (x *ServiceType) Reset()
func (*ServiceType) String ¶
func (x *ServiceType) String() string
type State ¶
type State int32
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
type Task ¶
type Task struct { CreationTime string `protobuf:"bytes,1,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Executors []*Executor `protobuf:"bytes,3,rep,name=executors,proto3" json:"executors,omitempty"` Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` Inputs []*Input `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"` Logs []*TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Outputs []*Output `protobuf:"bytes,8,rep,name=outputs,proto3" json:"outputs,omitempty"` Resources *Resources `protobuf:"bytes,9,opt,name=resources,proto3" json:"resources,omitempty"` State State `protobuf:"varint,10,opt,name=state,proto3,enum=tes.State" json:"state,omitempty"` Tags map[string]string `` /* 150-byte string literal not displayed */ Volumes []string `protobuf:"bytes,12,rep,name=volumes,proto3" json:"volumes,omitempty"` // contains filtered or unexported fields }
func Base64Decode ¶
Base64Decode decodes a base64 encoded string into a task
func (*Task) Descriptor
deprecated
func (*Task) GetBasicView ¶
GetBasicView returns the basic view of a task.
func (*Task) GetCreationTime ¶
func (*Task) GetDescription ¶
func (*Task) GetExecLog ¶
func (task *Task) GetExecLog(attempt int, i int) *ExecutorLog
GetExecLog gets the executor log entry at the given index "i". If the entry doesn't exist, empty logs will be appended up to "i".
func (*Task) GetExecutors ¶
func (*Task) GetMinimalView ¶
GetMinimalView returns the minimal view of a task.
func (*Task) GetOutputs ¶
func (*Task) GetResources ¶
func (*Task) GetTaskLog ¶
GetTaskLog gets the task log entry at the given index "i". If the entry doesn't exist, empty logs will be appended up to "i".
func (*Task) GetVolumes ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type TaskBasic ¶
type TaskBasic struct { CreationTime string `protobuf:"bytes,1,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Executors []*ExecutorBasic `protobuf:"bytes,3,rep,name=executors,proto3" json:"executors,omitempty"` Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` Inputs []*InputBasic `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"` Logs []*TaskLogBasic `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Outputs []*Output `protobuf:"bytes,8,rep,name=outputs,proto3" json:"outputs,omitempty"` Resources *Resources `protobuf:"bytes,9,opt,name=resources,proto3" json:"resources,omitempty"` State State `protobuf:"varint,10,opt,name=state,proto3,enum=tes.State" json:"state,omitempty"` Tags map[string]string `` /* 150-byte string literal not displayed */ Volumes []string `protobuf:"bytes,12,rep,name=volumes,proto3" json:"volumes,omitempty"` // contains filtered or unexported fields }
func (*TaskBasic) Descriptor
deprecated
func (*TaskBasic) GetCreationTime ¶
func (*TaskBasic) GetDescription ¶
func (*TaskBasic) GetExecutors ¶
func (x *TaskBasic) GetExecutors() []*ExecutorBasic
func (*TaskBasic) GetInputs ¶
func (x *TaskBasic) GetInputs() []*InputBasic
func (*TaskBasic) GetLogs ¶
func (x *TaskBasic) GetLogs() []*TaskLogBasic
func (*TaskBasic) GetOutputs ¶
func (*TaskBasic) GetResources ¶
func (*TaskBasic) GetVolumes ¶
func (*TaskBasic) ProtoMessage ¶
func (*TaskBasic) ProtoMessage()
func (*TaskBasic) ProtoReflect ¶
func (x *TaskBasic) ProtoReflect() protoreflect.Message
type TaskLog ¶
type TaskLog struct { EndTime string `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Logs []*ExecutorLog `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Outputs []*OutputFileLog `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` SystemLogs []string `protobuf:"bytes,6,rep,name=system_logs,json=systemLogs,proto3" json:"system_logs,omitempty"` // contains filtered or unexported fields }
func (*TaskLog) Descriptor
deprecated
func (*TaskLog) GetEndTime ¶
func (*TaskLog) GetLogs ¶
func (x *TaskLog) GetLogs() []*ExecutorLog
func (*TaskLog) GetMetadata ¶
func (*TaskLog) GetOutputs ¶
func (x *TaskLog) GetOutputs() []*OutputFileLog
func (*TaskLog) GetStartTime ¶
func (*TaskLog) GetSystemLogs ¶
func (*TaskLog) ProtoMessage ¶
func (*TaskLog) ProtoMessage()
func (*TaskLog) ProtoReflect ¶
func (x *TaskLog) ProtoReflect() protoreflect.Message
type TaskLogBasic ¶
type TaskLogBasic struct { EndTime string `protobuf:"bytes,1,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Logs []*ExecutorLog `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Outputs []*OutputFileLog `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // contains filtered or unexported fields }
func (*TaskLogBasic) Descriptor
deprecated
func (*TaskLogBasic) Descriptor() ([]byte, []int)
Deprecated: Use TaskLogBasic.ProtoReflect.Descriptor instead.
func (*TaskLogBasic) GetEndTime ¶
func (x *TaskLogBasic) GetEndTime() string
func (*TaskLogBasic) GetLogs ¶
func (x *TaskLogBasic) GetLogs() []*ExecutorLog
func (*TaskLogBasic) GetMetadata ¶
func (x *TaskLogBasic) GetMetadata() map[string]string
func (*TaskLogBasic) GetOutputs ¶
func (x *TaskLogBasic) GetOutputs() []*OutputFileLog
func (*TaskLogBasic) GetStartTime ¶
func (x *TaskLogBasic) GetStartTime() string
func (*TaskLogBasic) ProtoMessage ¶
func (*TaskLogBasic) ProtoMessage()
func (*TaskLogBasic) ProtoReflect ¶
func (x *TaskLogBasic) ProtoReflect() protoreflect.Message
func (*TaskLogBasic) Reset ¶
func (x *TaskLogBasic) Reset()
func (*TaskLogBasic) String ¶
func (x *TaskLogBasic) String() string
type TaskMin ¶
type TaskMin struct { Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` State State `protobuf:"varint,10,opt,name=state,proto3,enum=tes.State" json:"state,omitempty"` // contains filtered or unexported fields }
func (*TaskMin) Descriptor
deprecated
func (*TaskMin) ProtoMessage ¶
func (*TaskMin) ProtoMessage()
func (*TaskMin) ProtoReflect ¶
func (x *TaskMin) ProtoReflect() protoreflect.Message
type TaskServiceClient ¶
type TaskServiceClient interface { ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) CreateTask(ctx context.Context, in *Task, opts ...grpc.CallOption) (*CreateTaskResponse, error) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) CancelTask(ctx context.Context, in *CancelTaskRequest, opts ...grpc.CallOption) (*CancelTaskResponse, error) GetServiceInfo(ctx context.Context, in *GetServiceInfoRequest, opts ...grpc.CallOption) (*ServiceInfo, error) }
TaskServiceClient is the client API for TaskService 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 NewTaskServiceClient ¶
func NewTaskServiceClient(cc grpc.ClientConnInterface) TaskServiceClient
type TaskServiceServer ¶
type TaskServiceServer interface { ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error) CreateTask(context.Context, *Task) (*CreateTaskResponse, error) GetTask(context.Context, *GetTaskRequest) (*Task, error) CancelTask(context.Context, *CancelTaskRequest) (*CancelTaskResponse, error) GetServiceInfo(context.Context, *GetServiceInfoRequest) (*ServiceInfo, error) // contains filtered or unexported methods }
TaskServiceServer is the server API for TaskService service. All implementations must embed UnimplementedTaskServiceServer for forward compatibility
type TransitionError ¶
type TransitionError struct {
From, To State
}
TransitionError describes an invalid state transition.
func (*TransitionError) Error ¶
func (te *TransitionError) Error() string
type UnimplementedTaskServiceServer ¶
type UnimplementedTaskServiceServer struct { }
UnimplementedTaskServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTaskServiceServer) CancelTask ¶
func (UnimplementedTaskServiceServer) CancelTask(context.Context, *CancelTaskRequest) (*CancelTaskResponse, error)
func (UnimplementedTaskServiceServer) CreateTask ¶
func (UnimplementedTaskServiceServer) CreateTask(context.Context, *Task) (*CreateTaskResponse, error)
func (UnimplementedTaskServiceServer) GetServiceInfo ¶
func (UnimplementedTaskServiceServer) GetServiceInfo(context.Context, *GetServiceInfoRequest) (*ServiceInfo, error)
func (UnimplementedTaskServiceServer) GetTask ¶
func (UnimplementedTaskServiceServer) GetTask(context.Context, *GetTaskRequest) (*Task, error)
func (UnimplementedTaskServiceServer) ListTasks ¶
func (UnimplementedTaskServiceServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
type UnsafeTaskServiceServer ¶
type UnsafeTaskServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTaskServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaskServiceServer will result in compilation errors.
type ValidationError ¶
type ValidationError []error
ValidationError contains task validation errors.
func Validate ¶
func Validate(t *Task) ValidationError
Validate validates the given task and returns ValidationError, or nil if the task is valid.
func (ValidationError) Error ¶
func (v ValidationError) Error() string
type View ¶
type View int32
func (View) Descriptor ¶
func (View) Descriptor() protoreflect.EnumDescriptor
func (View) EnumDescriptor
deprecated
func (View) Number ¶
func (x View) Number() protoreflect.EnumNumber
func (View) Type ¶
func (View) Type() protoreflect.EnumType