executiondelivery

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: 7 Imported by: 0

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