Help us shape the future of Go! Take the 2026 Go Developer Survey

autopilot

package
v0.2.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaintenanceCommand added in v0.2.38

type MaintenanceCommand struct {
	ConnectionID string `json:"connection_id,omitempty"`
	Mode         string `json:"mode"`
	MicroUSD     int64  `json:"micro_usd"`
	Continuous   bool   `json:"continuous"`
	Proof        string `json:"proof,omitempty"`
}

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 Need

type Need = attention.Need

type RetryCommand added in v0.2.38

type RetryCommand struct {
	FindingVersion int64  `json:"finding_version"`
	Reason         string `json:"reason"`
}

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 New

func New(db *store.Store, identity *auth.Service, repairs *repair.Service, merges *mergecontrol.Service, budgets *budget.Service, policies *policy.Service) *Service

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) Get

func (s *Service) Get(ctx context.Context, session auth.Session, org string) (Settings, error)

func (*Service) MaintenanceStatus added in v0.2.38

func (s *Service) MaintenanceStatus(ctx context.Context, session auth.Session, org, repo string) (MaintenanceCommand, error)

func (*Service) Metrics

func (s *Service) Metrics(ctx context.Context, session auth.Session, org string) ([]Metric, error)

func (*Service) Needs

func (s *Service) Needs(ctx context.Context, session auth.Session, org string) ([]Need, error)

func (*Service) NeedsPage added in v0.2.38

func (s *Service) NeedsPage(ctx context.Context, session auth.Session, org string, limit int, cursor string) (attention.Page, error)

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) Put

func (s *Service) Put(ctx context.Context, session auth.Session, org string, enabled bool, expected int64, request string) (Settings, error)

func (*Service) Request

func (s *Service) Request(ctx context.Context, session auth.Session, org, repo, request string) error

func (*Service) RequestFinding added in v0.2.38

func (s *Service) RequestFinding(ctx context.Context, session auth.Session, org string, finding discovery.Finding, request string) error

func (*Service) RetryFinding added in v0.2.38

func (s *Service) RetryFinding(ctx context.Context, session auth.Session, org, finding string, in RetryCommand, request string) error

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) Step

func (s *Service) Step(ctx context.Context, org string) error

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL