Documentation
¶
Index ¶
- type MigrationsSummary
- type Ops
- func (o *Ops) ListMigrations(ctx context.Context) ([]migrations.MigrationModel, error)
- func (o *Ops) Promote(ctx context.Context, tag string) (*PromoteResult, error)
- func (o *Ops) PromoteOnce(ctx context.Context, tag string) (*PromoteResult, error)
- func (o *Ops) UpdateInstallRunners(ctx context.Context, tag string, opts UpdateRunnersOptions) (*UpdateRunnersResult, error)
- func (o *Ops) WithActor(ctx context.Context) (context.Context, error)
- type Params
- type PromoteResult
- type RunnerUpdateFailure
- type UpdateRunnersOptions
- type UpdateRunnersResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationsSummary ¶ added in v0.19.1293
type MigrationsSummary struct {
Total int `json:"total"`
Applied int `json:"applied"`
InProgress int `json:"in_progress"`
Errored int `json:"errored"`
}
func SummarizeMigrations ¶ added in v0.19.1293
func SummarizeMigrations(rows []migrations.MigrationModel) *MigrationsSummary
type Ops ¶
type Ops struct {
// contains filtered or unexported fields
}
func (*Ops) ListMigrations ¶ added in v0.19.1293
func (o *Ops) ListMigrations(ctx context.Context) ([]migrations.MigrationModel, error)
func (*Ops) PromoteOnce ¶
func (*Ops) UpdateInstallRunners ¶
func (o *Ops) UpdateInstallRunners(ctx context.Context, tag string, opts UpdateRunnersOptions) (*UpdateRunnersResult, error)
type PromoteResult ¶
type RunnerUpdateFailure ¶
type UpdateRunnersOptions ¶
type UpdateRunnersResult ¶
type UpdateRunnersResult struct {
Tag string `json:"tag"`
DryRun bool `json:"dry_run"`
Shutdown bool `json:"shutdown"`
Total int `json:"total"`
Updated int `json:"updated"`
Skipped int `json:"skipped"`
Failed int `json:"failed"`
ShutdownSkipped int `json:"shutdown_skipped,omitempty"`
RunnerIDs []string `json:"runner_ids,omitempty"`
Failures []RunnerUpdateFailure `json:"failures,omitempty"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.