proofcandidates

package
v0.4.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 9 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.New(
	xerror.KindNotFound,
	"PROOF_CANDIDATE_NOT_FOUND",
	"proof candidate not found",
)
View Source
var ErrMappingTargetNotFound = xerror.New(
	xerror.KindNotFound,
	"PROOF_MAPPING_TARGET_NOT_FOUND",
	"proof candidate mapping target not found",
)
View Source
var ErrWebhookDeliveryDigestMismatch = xerror.New(xerror.KindInvalidInput, "PROOF_WEBHOOK_DELIVERY_DIGEST_MISMATCH", "proof webhook delivery identity was reused with different bytes")

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	ID                    int64
	MappingID             int64
	Slug                  slug.Slug
	CandidateKey          string
	ChangeRequestID       string
	SourceRef             string
	HeadSHA               string
	SourceSHA256          string
	SpecHash              string
	CanonicalSpec         json.RawMessage
	SupersedesCandidateID *int64
	ClosedAt              *time.Time
	CreatedAt             time.Time
}

type CreateCandidateParams

type CreateCandidateParams struct {
	MappingID             int64
	Slug                  slug.Slug
	CandidateKey          string
	ChangeRequestID       string
	SourceRef             string
	HeadSHA               string
	SourceSHA256          string
	SpecHash              string
	CanonicalSpec         json.RawMessage
	SupersedesCandidateID *int64
}

type CreateMappingParams

type CreateMappingParams struct {
	CompareDeployed        bool
	OrganizationSlug       slug.Slug
	ProjectSlug            slug.Slug
	EnvironmentSlug        slug.Slug
	ProviderConnectionSlug slug.Slug
	Provider               string
	ProviderConnectionID   string
	RepositoryID           string
	TargetRef              string
	PipelinePath           string
}

type DeliveryClaimer

type DeliveryClaimer interface {
	ClaimWebhookDelivery(context.Context, postgres.DBTX, string, string, string) (bool, error)
}

func NewDeliveryClaimer

func NewDeliveryClaimer() DeliveryClaimer

type Mapping

type Mapping struct {
	CompareDeployed        bool
	ID                     int64
	OrganizationSlug       slug.Slug
	ProjectSlug            slug.Slug
	EnvironmentSlug        slug.Slug
	ProviderConnectionSlug slug.Slug
	Provider               string
	ProviderConnectionID   string
	RepositoryID           string
	TargetRef              string
	PipelinePath           string
}

type MappingLookup

type MappingLookup struct {
	MappingID            int64
	OrganizationSlug     slug.Slug
	Provider             string
	ProviderConnectionID string
	RepositoryID         string
	TargetRef            string
	PipelinePath         string
}

type WebhookMappingLookup

type WebhookMappingLookup struct {
	Provider             string
	ProviderConnectionID string
	RepositoryID         string
	TargetRef            string
}

Jump to

Keyboard shortcuts

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