Documentation
¶
Index ¶
- type MaintenanceCommand
- type MaintenancePlan
- type Metric
- type Need
- type RetryCommand
- type Service
- func (s *Service) ConfigureMaintenance(ctx context.Context, session auth.Session, org, repo string, ...) (MaintenancePlan, error)
- func (s *Service) Get(ctx context.Context, session auth.Session, org string) (Settings, error)
- func (s *Service) MaintenanceStatus(ctx context.Context, session auth.Session, org, repo string) (MaintenanceCommand, error)
- func (s *Service) Metrics(ctx context.Context, session auth.Session, org string) ([]Metric, error)
- func (s *Service) Needs(ctx context.Context, session auth.Session, org string) ([]Need, error)
- func (s *Service) NeedsPage(ctx context.Context, session auth.Session, org string, limit int, ...) (attention.Page, error)
- func (s *Service) PreviewMaintenance(ctx context.Context, session auth.Session, org, repo string, ...) (MaintenancePlan, error)
- func (s *Service) Put(ctx context.Context, session auth.Session, org string, enabled bool, ...) (Settings, error)
- func (s *Service) Request(ctx context.Context, session auth.Session, org, repo, request string) error
- func (s *Service) RequestFinding(ctx context.Context, session auth.Session, org string, ...) error
- func (s *Service) RetryFinding(ctx context.Context, session auth.Session, org, finding string, ...) error
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) Step(ctx context.Context, org string) error
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaintenanceCommand ¶ added in v0.2.38
type MaintenancePlan ¶ added in v0.2.38
type MaintenancePlan struct {
Subscription bool `json:"subscription"`
RepositoryID string `json:"repository_id"`
Repository string `json:"repository"`
Mode string `json:"mode"`
MicroUSD int64 `json:"micro_usd"`
Continuous bool `json:"continuous"`
Actions []policy.Action `json:"actions"`
Environments []string `json:"environments,omitempty"`
DeliveryRepositories []string `json:"delivery_repositories,omitempty"`
Decisions map[policy.Action]string `json:"decisions"`
Blockers []string `json:"blockers"`
Model string `json:"model,omitempty"`
ConnectionID string `json:"connection_id,omitempty"`
Route string `json:"route,omitempty"`
PoolID string `json:"pool_id,omitempty"`
BudgetPeriod string `json:"budget_period"`
OrgMicroUSD *int64 `json:"organisation_micro_usd,omitempty"`
OrgPeriod string `json:"organisation_period,omitempty"`
CreatesOrgLimit bool `json:"creates_organisation_limit"`
Ready bool `json:"ready"`
Proof string `json:"proof"`
// contains filtered or unexported fields
}
type Metric ¶
type Metric struct {
RepositoryID string `json:"repository_id"`
Repository string `json:"repository"`
Class string `json:"class"`
Open int `json:"open"`
Blocked int `json:"blocked"`
Fixed int `json:"fixed"`
MedianHoursToFix *float64 `json:"median_hours_to_fix,omitempty"`
AutoMerged int `json:"auto_merged"`
Regressed int `json:"regressed"`
Reverted int `json:"reverted"`
}
type RetryCommand ¶ added in v0.2.38
type Service ¶
type Service struct {
Scan func(context.Context, auth.Session, string, string, string) error
Tasks *workflow.Service
Deployments *deployment.Service
Promotions *gitops.Service
Delivery *delivery.Service
Notify func(context.Context, string) error
Connections *connections.Service
// contains filtered or unexported fields
}
func (*Service) ConfigureMaintenance ¶ added in v0.2.38
func (s *Service) ConfigureMaintenance(ctx context.Context, session auth.Session, org, repo string, in MaintenanceCommand, request string) (MaintenancePlan, error)
func (*Service) MaintenanceStatus ¶ added in v0.2.38
func (*Service) PreviewMaintenance ¶ added in v0.2.38
func (s *Service) PreviewMaintenance(ctx context.Context, session auth.Session, org, repo string, in MaintenanceCommand) (MaintenancePlan, error)
func (*Service) RequestFinding ¶ added in v0.2.38
func (*Service) RetryFinding ¶ added in v0.2.38
type Settings ¶
type Settings struct {
Enabled bool `json:"enabled"`
Status string `json:"status"`
CheckedAt *time.Time `json:"checked_at,omitempty"`
Active int `json:"active"`
Queued int `json:"queued"`
Skipped int `json:"skipped"`
Blocked int `json:"blocked"`
Awaiting int `json:"awaiting"`
Version int64 `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.