proofcandidates

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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 {
	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 {
	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