Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKubeconfigNil = errors.New("cluster kubeconfig is nil")
Functions ¶
func ConvertToAppError ¶
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor( session dbsession.ReadWriteSession, operation model.OperationType, stages map[model.OperationStage]Step, failureHandler FailureHandler) *Executor
func (*Executor) Execute ¶
func (e *Executor) Execute(operationID string) ProcessingResult
type FailureHandler ¶
type NonRecoverableError ¶
type NonRecoverableError struct {
// contains filtered or unexported fields
}
func NewNonRecoverableError ¶
func NewNonRecoverableError(err error) NonRecoverableError
func (NonRecoverableError) Error ¶
func (r NonRecoverableError) Error() string
type ProcessingResult ¶
type StageResult ¶
type StageResult struct { Stage model.OperationStage Delay time.Duration }
type Step ¶
type Step interface { Name() model.OperationStage Run(cluster model.Cluster, operation model.Operation, logger logrus.FieldLogger) (StageResult, error) TimeLimit() time.Duration }
Click to show internal directories.
Click to hide internal directories.