Versions in this module Expand all Collapse all v0 v0.1.2 Jul 15, 2026 v0.1.1 Jul 13, 2026 v0.1.0 Jul 13, 2026 Changes in this version + func DeclareLabels(registerLabels []string) []string + type Client struct + func NewClient(instanceURL string, httpClient *http.Client) *Client + func (c *Client) Declare(ctx context.Context, labels []string) error + func (c *Client) FetchTask(ctx context.Context, tasksVersion int64) (*FetchTaskResult, error) + func (c *Client) Register(ctx context.Context, name, regToken, version string, labels []string) (*Runner, error) + func (c *Client) RegistrationToken(ctx context.Context, apiToken, owner, repo string) (string, error) + func (c *Client) SetAuth(uuid, token string) + func (c *Client) Token() string + func (c *Client) UUID() string + func (c *Client) UpdateLog(ctx context.Context, taskID int64, index int64, rows []LogRow, noMore bool) (int64, error) + func (c *Client) UpdateTask(ctx context.Context, state *TaskState, outputs map[string]string) (*UpdateTaskResponse, error) + func (c *Client) Version(ctx context.Context) (string, error) + type FetchTaskResult struct + Task *Task + TasksVersion int64 + func (r *FetchTaskResult) UnmarshalJSON(data []byte) error + type LogRow struct + Content string + Time time.Time + type RPCError struct + Code string + HTTPStatus int + Message string + func (e *RPCError) Error() string + type Runner struct + ID int64 + Name string + Token string + UUID string + func (r *Runner) UnmarshalJSON(data []byte) error + type StepState struct + LogIndex int64 + LogLength int64 + Result TaskResult + StartedAt *time.Time + Step int64 + StoppedAt *time.Time + type Task struct + Context json.RawMessage + ID int64 + UUID string + WorkflowPayload string + func (t *Task) ContainerImage() string + func (t *Task) Repo() string + func (t *Task) UnmarshalJSON(data []byte) error + func (t *Task) WorkflowYAML() ([]byte, error) + type TaskResult int + const ResultCancelled + const ResultFailure + const ResultSkipped + const ResultSuccess + const ResultUnspecified + type TaskState struct + ID int64 + Result TaskResult + StartedAt *time.Time + Steps []StepState + StoppedAt *time.Time + type UpdateTaskResponse struct + SentOutputs []string + State *TaskState