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

release

package
v0.2.39 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BehaviourReferenceTx

func BehaviourReferenceTx(ctx context.Context, tx pgx.Tx, org, repo, head, target string, now time.Time) (string, error)

func CollectValidation

func CollectValidation(target, format string, build, test sandbox.CommandResult) (*deployment.BuildValidation, error)

func Meaningful

func Meaningful(p deployment.Provenance) bool

Types

type Receipt

type Receipt struct {
	Mode       string                      `json:"mode,omitempty"`
	ID         string                      `json:"id"`
	Provenance deployment.SignedProvenance `json:"provenance"`
	ReceivedAt time.Time                   `json:"received_at"`
}

type Service

type Service struct {
	DB   *store.Store
	Auth *auth.Service
}

func (*Service) Get

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

func (*Service) List

func (s *Service) List(ctx context.Context, session auth.Session, org, repo, cursor string, limit int) (domain.Page[Receipt], error)

func (*Service) Receive

func (s *Service) Receive(ctx context.Context, org, repo string, signed deployment.SignedProvenance) (Receipt, error)

func (*Service) Request

func (s *Service) Request(ctx context.Context, session auth.Session, org, id string) (Receipt, deployment.PreviewRequest, error)

Jump to

Keyboard shortcuts

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