Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConditionAlwaysExecute = "always-execute"
)
Variables ¶
This section is empty.
Functions ¶
func IsCommandNotFound ¶
IsCommandNotFound asserts commandNotFoundError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
Backoff is a simple wrapper that allows us to better explain how the backoff got configured.
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(config ExecutorConfig) (*Executor, error)
type ExecutorConfig ¶
type Step ¶
type Step struct { // Action is the action/command name, e.g. ac013. Action StepAction // Backoff is the tolerance within the associated action must be // successfully executed without returning errors. Backoff *Backoff // CoolDown is the time to wait after the action was executed, before moving // on to execute the following action. This is a delay mechanism in order to // defer the execution of actions within a test plan. CoolDown time.Duration // Condition defines when to execute this step of a plan. By default all // steps are executed until an error occurs. This behaviour can be // overwritten to always execute certain steps e.g. for cluster deletion. Condition StepCondition }
type StepAction ¶
type StepAction string
func (StepAction) Split ¶
func (a StepAction) Split() []string
func (StepAction) String ¶
func (a StepAction) String() string
type StepCondition ¶
type StepCondition string
Click to show internal directories.
Click to hide internal directories.