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

autopilot

package
v0.2.26 Latest Latest
Warning

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

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

Documentation

Index

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 Need

type Need struct {
	Kind         string `json:"kind"`
	FindingID    string `json:"finding_id"`
	RepositoryID string `json:"repository_id"`
	Repository   string `json:"repository"`
	Title        string `json:"title"`
	Reason       string `json:"reason"`
	URL          string `json:"url,omitempty"`
	Label        string `json:"label,omitempty"`
}

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
}

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

func (s *Service) Get(ctx context.Context, session auth.Session, org string) (Settings, 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) 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) 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