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
type DryRunFunc func(context.Context, *deployment.AzureDeployment) ([]*sdk.DryRunResult, error)
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
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 NewRetryDeploymentExecutor ¶ added in v0.2.1
func NewRetryStageExecutor ¶ added in v0.2.1
func NewStartDeploymentExecutor ¶ added in v0.2.1
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
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
Click to show internal directories.
Click to hide internal directories.