Versions in this module Expand all Collapse all v1 v1.2.0 Jun 1, 2023 Changes in this version + type Configure func(i *model.InvokedOperation) error + type DryRunFunc func(context.Context, *deployment.AzureDeployment) (*sdk.DryRunResult, error) + type ExecutionContext struct + func (c *ExecutionContext) Attribute(key model.AttributeKey, v any) error + func (c *ExecutionContext) Context() context.Context + func (c *ExecutionContext) Error(err error) + func (c *ExecutionContext) Failed() error + func (c *ExecutionContext) Operation() *Operation + func (c *ExecutionContext) Retry() error + func (c *ExecutionContext) Running() error + func (c *ExecutionContext) SaveChanges() error + func (c *ExecutionContext) Success() error + func (c *ExecutionContext) Value(v any) error + type Executor interface + Execute func(context *ExecutionContext) error + func NewExecutor(operation OperationFunc) Executor + type Operation struct + func (o *Operation) Attribute(key model.AttributeKey, v any) error + func (o *Operation) Context() context.Context + func (o *Operation) Deployment() *model.Deployment + func (o *Operation) Do(fn OperationFunc) + func (o *Operation) Execute() error + func (o *Operation) Failed() error + func (o *Operation) Retry() error + func (o *Operation) Running() error + func (o *Operation) SaveChanges() error + func (o *Operation) Schedule() error + func (o *Operation) Success() error + func (o *Operation) Value(v any) error + type OperationFunc func(context *ExecutionContext) error + func WithLogging(operation OperationFunc) OperationFunc + type OperationFuncProvider interface + Get func(operationType sdk.OperationType) (OperationFunc, error) + type Repository interface + First func(id uuid.UUID) (*Operation, error) + New func(operationType sdk.OperationType, configure Configure) (*Operation, error) + Provider func(provider OperationFuncProvider) error + WithContext func(ctx context.Context) + func NewRepository(appConfig *config.AppConfig, provider OperationFuncProvider) (Repository, error) + type RetriableError struct + Err error + RetryAfter time.Duration + func (e *RetriableError) Error() string