Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrNoOperation = errors.New("job has no operation data") + var ErrNotFound = errors.New("job not found") + var ErrOutOfScope = errors.New("target is outside the token's target scope") + var Group = endpoint.Register(...) + func Delete(ctx context.Context, d Deps, in DeleteInput) (struct{}, error) + type AgentState = struct + Duration string + Error string + Hostname string + Status types.AgentJobStatus + type CreateJobResponse struct + JobID string + Revision int64 + Status types.JobStatus + Timestamp string + func Retry(ctx context.Context, d Deps, in RetryInput) (CreateJobResponse, error) + type DeadLetter struct + Consumer string + Deliveries uint64 + Error string + JobID string + Operation *Operation + Seq uint64 + Target string + Time time.Time + type DeadLetterList struct + Items []DeadLetter + TotalItems int + func DeadLetters(ctx context.Context, d Deps, in DeadLetterListInput) (DeadLetterList, error) + type DeadLetterListInput struct + Limit int + type DeleteInput struct + ID string + type Deps struct + Jobs Jobs + type DetailResponse struct + AgentStates []AgentState + Chain []string + Changed *bool + Created string + Error string + Hostname string + ID string + Operation *Operation + Responses []Response + Result any + Status types.JobStatus + Target string + Timeline []TimelineEvent + UpdatedAt string + func Get(ctx context.Context, d Deps, in GetInput) (DetailResponse, error) + type GetInput struct + ID string + type Jobs interface + DeleteJob func(ctx context.Context, jobID string) error + GetJobStatus func(ctx context.Context, jobID string) (*job.QueuedJob, error) + ListDeadLetters func(ctx context.Context, limit int) ([]job.DeadLetter, int, error) + ListJobs func(ctx context.Context, statusFilter types.JobStatus, limit int, offset int, ...) (*client.ListJobsResult, error) + RetryJob func(ctx context.Context, jobID string, targetHostname string) (*client.CreateJobResult, error) + type ListInput struct + Limit int + Offset int + Status types.JobStatus + type ListJobsResponse struct + Items []DetailResponse + StatusCounts map[types.JobStatus]int + TotalItems int + func List(ctx context.Context, d Deps, in ListInput) (ListJobsResponse, error) + type Operation = struct + Data any + Type string + type Response = struct + Changed *bool + Data any + Error string + Hostname string + Status types.AgentJobStatus + Steps []types.Step + type RetryInput struct + Body RetryJobRequest + ID string + type RetryJobRequest struct + TargetHostname string + type TimelineEvent = struct + Error string + Event types.AgentJobStatus + Hostname string + Message string + Timestamp string