Documentation
¶
Index ¶
- type Campaign
- type Counts
- type Execution
- type Executor
- type Input
- type Member
- type MemberInput
- type Preview
- type Service
- func (s *Service) CheckMergeTx(ctx context.Context, tx pgx.Tx, org, repo string, snapshot forge.MergeEvidence) error
- func (s *Service) CheckScopeTx(ctx context.Context, tx pgx.Tx, org, kind, id string) error
- func (s *Service) ConfigureExecution(repairs *repair.Service, pipelines *deployment.Service, ...)
- func (s *Service) Control(ctx context.Context, session auth.Session, ...) (Campaign, error)
- func (s *Service) Create(ctx context.Context, session auth.Session, org, previewID, key, request string) (Campaign, error)
- func (s *Service) GateAuthorityTx(ctx context.Context, tx pgx.Tx, org, gate string) error
- func (s *Service) Get(ctx context.Context, session auth.Session, org, id string) (Campaign, error)
- func (s *Service) List(ctx context.Context, session auth.Session, org, state, cursor string, ...) (domain.Page[Campaign], error)
- func (s *Service) Members(ctx context.Context, session auth.Session, org, id, cursor string, limit int) (domain.Page[Member], error)
- func (s *Service) Preview(ctx context.Context, session auth.Session, org string, in Input) (Preview, error)
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) Step(ctx context.Context, org string) error
- func (s *Service) TaskAuthorityTx(ctx context.Context, tx pgx.Tx, t workflow.Task) error
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Campaign ¶
type Campaign struct {
ID string `json:"id"`
Name string `json:"name"`
Kind string `json:"kind"`
State string `json:"state"`
Reason string `json:"reason"`
Version int64 `json:"version"`
Stage int `json:"stage"`
RequestedBy string `json:"requested_by"`
Spec Input `json:"spec"`
Counts Counts `json:"counts"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
GrantExpiresAt time.Time `json:"grant_expires_at"`
ObservingSince *time.Time `json:"observing_since,omitempty"`
}
type Input ¶
type Input struct {
Name string `json:"name"`
Kind string `json:"kind"`
Selection string `json:"selection"`
Members []MemberInput `json:"members"`
CanaryIDs []string `json:"canary_ids"`
CanarySize int `json:"canary_size"`
BatchSize int `json:"batch_size"`
Concurrency int `json:"concurrency"`
Success string `json:"success"`
ObservationSeconds int64 `json:"observation_seconds"`
FailureLimit int `json:"failure_limit"`
FailurePercent int `json:"failure_percent"`
Windows []Window `json:"windows"`
NotBefore *time.Time `json:"not_before,omitempty"`
}
type Member ¶
type Member struct {
ObservedAt time.Time `json:"-"`
ID string `json:"id"`
RepositoryID string `json:"repository_id"`
RepositoryName string `json:"repository_name"`
Repositories []string `json:"repositories"`
Group string `json:"group"`
Canary bool `json:"canary"`
Input MemberInput `json:"input"`
Pins map[string]string `json:"pins"`
State string `json:"state"`
Reason string `json:"reason"`
Stage int `json:"stage"`
Halt bool `json:"halt"`
ResumeRequested bool `json:"-"`
ActionID string `json:"action_id,omitempty"`
SucceededAt *time.Time `json:"succeeded_at,omitempty"`
}
type MemberInput ¶
type MemberInput struct {
RepositoryID string `json:"repository_id"`
Repair *repair.Input `json:"repair,omitempty"`
Environment string `json:"environment,omitempty"`
Pipeline *deployment.PreviewRequest `json:"pipeline,omitempty"`
GitOps *gitops.PreviewRequest `json:"gitops,omitempty"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CheckMergeTx ¶
func (*Service) CheckScopeTx ¶
func (*Service) ConfigureExecution ¶
func (s *Service) ConfigureExecution(repairs *repair.Service, pipelines *deployment.Service, promotions *gitops.Service, merges *mergecontrol.Service)
func (*Service) GateAuthorityTx ¶
Click to show internal directories.
Click to hide internal directories.