Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountMigReposCommand ¶
CountMigReposCommand counts the repos in a migration's repo set.
type CountMigRunsCommand ¶
CountMigRunsCommand counts runs belonging to a specific migration by scanning the runs list.
type GetRunTotalsCommand ¶
GetRunTotalsCommand fetches repo and job totals for a specific run. It calls GET /v1/runs/{id} for repo counts and GET /v1/jobs?run_id={id} for job total.
type JobItem ¶
type JobItem struct {
JobID domaintypes.JobID `json:"job_id"`
Name string `json:"name"`
Status domaintypes.JobStatus `json:"status"`
DurationMs int64 `json:"duration_ms"`
JobImage string `json:"job_image"`
NodeID *domaintypes.NodeID `json:"node_id"`
MigName string `json:"mig_name"`
RunID domaintypes.RunID `json:"run_id"`
RepoID domaintypes.RepoID `json:"repo_id"`
}
JobItem represents a single job entry from the list API.
type ListJobsCommand ¶
type ListJobsCommand struct {
Client *http.Client
BaseURL *url.URL
Limit int32
Offset int32
RunID *domaintypes.RunID // Optional: filter jobs to a specific run.
}
ListJobsCommand fetches a paginated list of jobs with an optional run_id filter.
func (ListJobsCommand) Run ¶
func (c ListJobsCommand) Run(ctx context.Context) (ListJobsResult, error)
Run executes GET /v1/jobs.
type ListJobsResult ¶
ListJobsResult is the response from GET /v1/jobs.
type ListMigsCommand ¶
ListMigsCommand fetches a paginated list of migrations.
func (ListMigsCommand) Run ¶
func (c ListMigsCommand) Run(ctx context.Context) (domainapi.MigListResponse, error)
Run executes GET /v1/migs.
type ListRunsCommand ¶
ListRunsCommand fetches a paginated list of runs.
func (ListRunsCommand) Run ¶
func (c ListRunsCommand) Run(ctx context.Context) (ListRunsResult, error)
Run executes GET /v1/runs.
type ListRunsResult ¶
type ListRunsResult struct {
Runs []domaintypes.RunSummary `json:"runs"`
}
ListRunsResult is the response from GET /v1/runs.