Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeliveryNotFound = xerror.NotFound(xerror.PipelineRun)
View Source
var ErrReceiverNotFound = xerror.NotFound(xerror.PipelineTrigger)
Functions ¶
This section is empty.
Types ¶
type AcceptParams ¶
type AcceptResult ¶
type CompleteParams ¶
type Diagnostic ¶
type Diagnostic struct {
ReceiverID, DeliveryID, PayloadDigest, Status string
TriggerSlug, PipelineSlug slug.Slug
TriggerRevision int64
PayloadSizeBytes int64
MappedInputNames []string
LinkedRunSlug *slug.Slug
AttemptNumber, DuplicateCount int
FailureKind, DecisionReason *string
NextRetryAt, StartedAt, CompletedAt *time.Time
ReceivedAt, UpdatedAt time.Time
LastDuplicateAt *time.Time
EnvelopeRetained bool
EnvelopeExpiresAt *time.Time
}
Diagnostic is the safe persistence projection used by operator read surfaces.
type DuplicateResult ¶
type Receiver ¶
type Receiver struct {
OrgSlug, ProjectSlug, EnvironmentSlug, TriggerSlug, PipelineSlug slug.Slug
TriggerRevision int64
VersionPolicy model.PipelineTriggerVersionPolicy
RetryPolicy model.PipelineTriggerRetryPolicy
RuntimeInputKeys []string
InputMappings []model.PipelineWebhookInputMapping
}
type RecordRetryParams ¶
type RejectParams ¶
type Repository ¶
type Repository interface {
GetIntake(context.Context, postgres.DBTX, string, string) (Delivery, error)
ResetPreflight(context.Context, postgres.DBTX, string, string, int) error
ResolveReceiver(context.Context, postgres.DBTX, string) (Receiver, error)
RecordDuplicate(context.Context, postgres.DBTX, string, string, string, time.Time) (DuplicateResult, error)
Accept(context.Context, postgres.DBTX, AcceptParams) (AcceptResult, error)
Reject(context.Context, postgres.DBTX, RejectParams) (AcceptResult, error)
Expire(context.Context, postgres.DBTX, string, string, time.Time) error
Load(context.Context, postgres.DBTX, string, string, int, time.Time) (Delivery, error)
MarkRunning(context.Context, postgres.DBTX, string, string, int, time.Time) error
Complete(context.Context, postgres.DBTX, CompleteParams) error
RecordRetry(context.Context, postgres.DBTX, RecordRetryParams) error
ListForTrigger(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, slug.Slug, model.ListRequest) ([]Diagnostic, error)
GetForTrigger(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, slug.Slug, string) (Diagnostic, error)
Replay(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, slug.Slug, string, time.Time) (ReplayRef, error)
}
func New ¶
func New() Repository
Click to show internal directories.
Click to hide internal directories.