operations

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DryRunFunc added in v0.2.1

this is so the dry run can be tested, detaching actual dry run implementation

type Execute added in v0.2.1

type Execute func(ctx context.Context, operation *data.InvokedOperation) error

func Trace added in v0.2.1

func Trace(execute Execute) Execute

type Executor added in v0.2.1

type Executor interface {
	Execute(ctx context.Context, operation *data.InvokedOperation) error
}

Executor is the interface for the actual execution of a logically invoked operation from the API Requestor --> invoke this operation --> enqueue --> executor --> execute the operation

func NewDryRunExecutor added in v0.2.1

func NewDryRunExecutor(appConfig *config.AppConfig) Executor

func NewRetryDeploymentExecutor added in v0.2.1

func NewRetryDeploymentExecutor(appConfig *config.AppConfig) Executor

func NewRetryStageExecutor added in v0.2.1

func NewRetryStageExecutor(appConfig *config.AppConfig) Executor

func NewStartDeploymentExecutor added in v0.2.1

func NewStartDeploymentExecutor(appConfig *config.AppConfig) Executor

type ExecutorFactory added in v0.2.1

type ExecutorFactory interface {
	Create(operationType sdk.OperationType) (Executor, error)
}

func NewExecutorFactory added in v0.2.1

func NewExecutorFactory(appConfig *config.AppConfig) ExecutorFactory

type RetriableError added in v0.2.1

type RetriableError struct {
	Err        error
	RetryAfter time.Duration
}

RetriableError is a custom error that contains a positive duration for the next retry

func (*RetriableError) Error added in v0.2.1

func (e *RetriableError) Error() string

Error returns error message and a Retry-After duration

Jump to

Keyboard shortcuts

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