proofreceipts

package
v0.5.0-rc.2-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCandidateNotFound     = xerror.NotFound(xerror.Pipeline).Detail("proof candidate not found")
	ErrReceiptNotFound       = xerror.New(xerror.KindNotFound, "PROOF_RECEIPT_NOT_FOUND", "proof receipt not found")
	ErrLifecycleLinkNotFound = xerror.New(xerror.KindNotFound, "PROOF_LIFECYCLE_LINK_NOT_FOUND", "matching proof lifecycle link not found")
)

Functions

This section is empty.

Types

type CandidateTarget

type CandidateTarget struct {
	CompareDeployed        bool
	OrganizationID         int32
	ProjectID              int64
	ProjectEnvironmentID   int64
	MappingID              int64
	CandidateID            int64
	SupersedesCandidateID  *int64
	CandidateSlug          slug.Slug
	OrganizationSlug       slug.Slug
	ProjectSlug            slug.Slug
	EnvironmentSlug        slug.Slug
	ProviderConnectionSlug slug.Slug
	RepositoryID           string
	ChangeRequestID        string
	HeadSHA                string
	TargetRef              string
	PipelinePath           string
	SpecHash               string
	CanonicalSpec          json.RawMessage
	CreatedAt              time.Time
}

type CreateReceiptParams

type CreateReceiptParams struct {
	EvidenceID int64
	ReceiptKey string
	Receipt    model.ProofReceipt
	Supersedes *LatestReceipt
}

type DeletedReceipt

type DeletedReceipt struct {
	Slug       slug.Slug
	Key        string
	EvidenceID int64
}

type Evidence

type Evidence struct {
	ID         int64
	Digest     string
	ObservedAt time.Time
	ExpiresAt  *time.Time
}

type EvidenceParams

type EvidenceParams struct {
	Kind                  string
	Digest                string
	SourceIdentifier      string
	BindingFingerprint    string
	CapabilityFingerprint string
	ObservedAt            time.Time
	ExpiresAt             *time.Time
}

type LatestReceipt

type LatestReceipt struct {
	ID   int64
	Slug slug.Slug
}
type LifecycleLink struct {
	Kind                  model.ProofLifecycleLinkKind
	ReceiptSlug           slug.Slug
	Identifier            string
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	LinkedAt              time.Time
	RetainUntil           time.Time
	Superseded            bool
	PipelineSlug          *slug.Slug
	RunSlug               *slug.Slug
	CurrentSpecHash       string
	CurrentIdentifier     string
}

type LinkDeploymentParams

type LinkDeploymentParams struct {
	ReceiptSlug slug.Slug
	Identifier  string
	SpecHash    string
	LinkedAt    time.Time
}

type MaintenanceOrganization

type MaintenanceOrganization struct {
	ID   int32
	Slug slug.Slug
}

type MaintenanceRepository

type MaintenanceRepository interface {
	LockTarget(context.Context, postgres.DBTX, string) error
	ListMaintenanceOrganizations(context.Context, postgres.DBTX, int32) ([]MaintenanceOrganization, error)
	DeleteExpired(context.Context, postgres.DBTX, slug.Slug) ([]DeletedReceipt, error)
	DeleteUnusedEvidence(context.Context, postgres.DBTX, slug.Slug, []int64) error
}

type OperationalRepository

type OperationalRepository interface {
	FindOperationalRun(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, slug.Slug) (*OperationalRun, error)
}

type OperationalRun

type OperationalRun struct {
	Pipeline         slug.Slug
	Run              slug.Slug
	Attempt          int
	Status           string
	Timeline         json.RawMessage
	EndedAt          *time.Time
	SpecHash         string
	VersionCommit    string
	ResolutionDigest string
	Resolution       []byte
	Settings         json.RawMessage
}

type Receipt

type Receipt struct {
	Value      model.ProofReceipt
	Superseded bool
	Key        string
	EvidenceID int64
}

Jump to

Keyboard shortcuts

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