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

delivery

package
v0.2.48 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadinessTx

func ReadinessTx(ctx context.Context, tx pgx.Tx, a domain.Actor, repo, mode string, controls policy.Lists, resolve func(context.Context, pgx.Tx, string, string) (policy.Resolved, error)) ([]string, []string, error)

Types

type Path

type Path struct {
	Kind        string   `json:"kind"`
	Environment string   `json:"environment"`
	Ready       bool     `json:"ready"`
	Blockers    []string `json:"blockers"`
}

type RestorePlan

type RestorePlan struct {
	Kind        string    `json:"kind"`
	Environment string    `json:"environment"`
	PreviousAt  time.Time `json:"previous_at"`
	GateID      string    `json:"gate_id"`
	ExpiresAt   time.Time `json:"expires_at"`
	Limits      []string  `json:"limits"`
	Blockers    []string  `json:"blockers"`
}

type Result

type Result struct {
	Kind  string `json:"kind"`
	ID    string `json:"id"`
	State string `json:"state"`
}

type Service

type Service struct {
	Releases  *release.Service
	Native    *deployment.Service
	GitOps    *gitops.Service
	Providers providers.Client
}

func (*Service) ConfirmRestore

func (s *Service) ConfirmRestore(ctx context.Context, session auth.Session, org, kind, id, gateID string, expected int64, request string) (Result, error)

func (*Service) Deploy

func (s *Service) Deploy(ctx context.Context, session auth.Session, org, receiptID, requestID string) (Result, error)

func (*Service) Discover

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

func (*Service) PreviewRestore

func (s *Service) PreviewRestore(ctx context.Context, session auth.Session, org, kind, id string, expected int64, request string) (RestorePlan, error)

func (*Service) Restore

func (s *Service) Restore(ctx context.Context, session auth.Session, org, kind, id string, expected int64, request string) (Result, error)

type Setup

type Setup struct {
	Workflows []Workflow `json:"workflows"`
	Paths     []Path     `json:"paths"`
	Blockers  []string   `json:"blockers"`
}

type Workflow

type Workflow struct {
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
}

Jump to

Keyboard shortcuts

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