Documentation ¶
Index ¶
- Variables
- func Action(f actionFunction) actionStep
- func AuthorizationRefreshingAction(authorizer refreshable.Authorizer, step Step) authorizationRefreshingActionStep
- func Condition(f conditionFunction, timeout time.Duration) conditionStep
- func Run(ctx context.Context, log *logrus.Entry, pollInterval time.Duration, ...) error
- type Step
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWantRefresh = errors.New("want refresh")
Functions ¶
func Action ¶
func Action(f actionFunction) actionStep
Action returns a Step which will execute the action function `f`. Errors from `f` are returned directly.
func AuthorizationRefreshingAction ¶
func AuthorizationRefreshingAction(authorizer refreshable.Authorizer, step Step) authorizationRefreshingActionStep
AuthorizationRefreshingAction returns a wrapper Step which will refresh `authorizer` if the step returns an Azure AuthenticationError and rerun it. The step will be retried until `retryTimeout` is hit. Any other error will be returned directly.
func Condition ¶
Condition returns a Step suitable for checking whether subsequent Steps can be executed.
The Condition will execute f repeatedly (every Runner.pollInterval), timing out with a failure when more time than the provided timeout has elapsed without f returning (true, nil). Errors from `f` are returned directly.
Types ¶
Click to show internal directories.
Click to hide internal directories.