Versions in this module Expand all Collapse all v0 v0.12.3 Nov 9, 2026 Changes in this version + const DefaultResponseBytes + var ErrConcurrentStateChange = errors.New("Concurrent stage change") + var ErrNotFound = errors.New("task not found") + var ErrNotPermitted = errors.New("permission denied") + func Base64Decode(raw string) (*tes.Task, error) + func Base64Encode(t *tes.Task) (string, error) + func EncodeTaskCursor(created, id string) string + func FilterBackendParameters(resources *tes.Resources, supported []string) ([]string, error) + func GPUCount(resources *tes.Resources) (int, error) + func GPUDevices(resources *tes.Resources, expectedCount int) ([]string, error) + func GenerateID() string + func GetBasicView(task *tes.Task) *tes.Task + func GetExecLog(task *tes.Task, attempt int, i int) *tes.ExecutorLog + func GetMinimalView(task *tes.Task) *tes.Task + func GetPageSize(reqSize int32) int + func GetTaskLog(task *tes.Task, i int) *tes.TaskLog + func InitTask(task *tes.Task, overwrite bool) error + func InitTaskWithForbiddenPathPrefixes(task *tes.Task, overwrite bool, forbiddenPathPrefixes []string) error + func NormalizeBackendParameters(resources *tes.Resources) error + func NormalizeView(view string) (string, error) + func ParseGPUDevices(value string, expectedCount int) ([]string, error) + func ValidateContainerImage(image string) error + func ValidateMountPaths(task *tes.Task, executorBackend string) error + func ValidateTransition(from, to tes.State) error + func WithTaskPageBytes(ctx context.Context, size int) context.Context + type ReadOnlyServer interface + Close func() + GetTask func(ctx context.Context, in *tes.GetTaskRequest) (*tes.Task, error) + ListTasks func(ctx context.Context, in *tes.ListTasksRequest) (*tes.ListTasksResponse, error) + type TaskCursor struct + Created string + ID string + func DecodeTaskCursor(token string) (TaskCursor, bool, error) + type TaskPage struct + func NewTaskPage(ctx context.Context) *TaskPage + func (p *TaskPage) Add(task *tes.Task, nextToken string) (bool, error) + func (p *TaskPage) Finish(hasMore bool) *tes.ListTasksResponse + type TransitionError struct + From tes.State + To tes.State + func (te *TransitionError) Error() string + type ValidationError []error + func Validate(t *tes.Task) ValidationError + func ValidateWithForbiddenPathPrefixes(t *tes.Task, forbiddenPathPrefixes []string) ValidationError + func (v ValidationError) Error() string