pipelinewebhooks

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

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

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 AcceptParams struct {
	ReceiverID, DeliveryID, PayloadDigest string
	PayloadSizeBytes                      int64
	KeyVersion                            int
	Receiver                              Receiver
	RunSlug                               slug.Slug
	EncryptedEnvelope                     []byte
	EnvelopeExpiresAt, ReceivedAt         time.Time
}

type AcceptResult

type AcceptResult struct {
	Inserted      bool
	PayloadDigest string
	RunSlug       slug.Slug
	Status        string
}

type CompleteParams

type CompleteParams struct {
	ReceiverID, DeliveryID              string
	AttemptNumber                       int
	Status, FailureKind, DecisionReason string
	CompletedAt                         time.Time
}

type Delivery

type Delivery struct {
	Resuming                              bool
	DatabaseID                            int64
	ReceiverID, DeliveryID, PayloadDigest string
	PayloadSizeBytes                      int64
	KeyVersion                            int
	Receiver                              Receiver
	RunSlug                               slug.Slug
	PipelineVersionSpecHash               string
	AttemptNumber                         int
	EncryptedEnvelope                     []byte
	EnvelopeExpiresAt, ReceivedAt         time.Time
}

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 DuplicateResult struct {
	Found, Duplicate bool
	PayloadDigest    string
	RunSlug          slug.Slug
	Status           string
}

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 RecordRetryParams struct {
	ReceiverID, DeliveryID   string
	AttemptNumber            int
	NextAttemptNumber        int
	VersionHash, FailureKind string
	NextRetryAt, UpdatedAt   time.Time
}

type RejectParams

type RejectParams struct {
	ReceiverID, DeliveryID, PayloadDigest, DecisionReason string
	PayloadSizeBytes                                      int64
	KeyVersion                                            int
	Receiver                                              Receiver
	RunSlug                                               slug.Slug
	ReceivedAt                                            time.Time
}

type ReplayRef

type ReplayRef struct {
	ReceiverID, DeliveryID string
	AttemptNumber          int
}

Jump to

Keyboard shortcuts

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