executiondelivery

package
v0.4.0-rc.3-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 7 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 ErrAccountUnavailable = xerror.New(
	xerror.KindUnauthorized,
	"EXECUTION_ACCOUNT_UNAVAILABLE",
	"execution request account is unavailable",
)

ErrAccountUnavailable is terminal for queued work; retry cannot restore the initiating identity or make an invalid account binding authoritative.

Functions

func InitiatingUser

func InitiatingUser(ctx context.Context) slug.Slug

func IsNotExecuted

func IsNotExecuted(err error) bool

IsNotExecuted reports whether admission prevented connector execution.

func MarkNotExecuted

func MarkNotExecuted(err error) error

MarkNotExecuted marks an admission failure that must not change connector health.

func ProcessDispositionStrings

func ProcessDispositionStrings() []string

ProcessDispositionStrings returns a slice of all String values of the enum

func Request

func Request(ctx context.Context) (uuid.UUID, bool)

func WithInitiatingUser

func WithInitiatingUser(ctx context.Context, user slug.Slug) context.Context

WithInitiatingUser carries an already-authorized account across execution adapters. It is attribution, not a substitute for resource authorization.

func WithRequest

func WithRequest(ctx context.Context, id uuid.UUID) context.Context

WithRequest binds executor-only lookups to a claimed encrypted envelope.

Types

type ProcessDisposition

type ProcessDisposition uint8
const (
	ProcessDone    ProcessDisposition = iota // done
	ProcessRetryAt                           // retry_at
)

func ProcessDispositionString

func ProcessDispositionString(s string) (ProcessDisposition, error)

ProcessDispositionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ProcessDispositionValues

func ProcessDispositionValues() []ProcessDisposition

ProcessDispositionValues returns all values of the enum

func (ProcessDisposition) IsAProcessDisposition

func (i ProcessDisposition) IsAProcessDisposition() bool

IsAProcessDisposition returns "true" if the value is listed in the enum definition. "false" otherwise

func (ProcessDisposition) MarshalText

func (i ProcessDisposition) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ProcessDisposition

func (ProcessDisposition) String

func (i ProcessDisposition) String() string

func (*ProcessDisposition) UnmarshalText

func (i *ProcessDisposition) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ProcessDisposition

type ProcessResult

type ProcessResult struct {
	Disposition ProcessDisposition
	RetryAt     time.Time
}

type Processor

type Processor interface {
	Process(context.Context, uuid.UUID) (ProcessResult, error)
}

Jump to

Keyboard shortcuts

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