Documentation
¶
Index ¶
- type Metric
- type Need
- type Service
- func (s *Service) Get(ctx context.Context, session auth.Session, org string) (Settings, 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) 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) 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 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 Service ¶
type Service struct {
Scan func(context.Context, auth.Session, string, string, string) error
Tasks *workflow.Service
Deployments *deployment.Service
Promotions *gitops.Service
Notify func(context.Context, string) error
Connections *connections.Service
// contains filtered or unexported fields
}
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.