Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseOperation ¶
type BaseOperation func(options configmanager.RawOptions) error
BaseOperation reads options and executes operation
type ExecuteOperations ¶
type ExecuteOperations []BaseOperation
type Installer ¶
type Installer interface {
Execute(options configmanager.RawOptions) (statemanager.ResourceStatus, error)
}
type MutableOperation ¶
type MutableOperation func(options configmanager.RawOptions) (configmanager.RawOptions, error)
MutableOperation can be used to change options if it is needed
type Operator ¶
type Operator struct { PreExecuteOperations PreExecuteOperations ExecuteOperations ExecuteOperations TerminateOperations TerminateOperations GetStatusOperation StatusGetterOperation }
Operator knows all the operations and can execute them in order
func (*Operator) Execute ¶
func (o *Operator) Execute(options configmanager.RawOptions) (statemanager.ResourceStatus, error)
Execute will sequentially execute all operations in Operator
type PreExecuteOperations ¶
type PreExecuteOperations []MutableOperation
type StatusGetterOperation ¶
type StatusGetterOperation func(options configmanager.RawOptions) (statemanager.ResourceStatus, error)
StatusGetterOperation reads options and executes operation, then returns the status map
type TerminateOperations ¶
type TerminateOperations []BaseOperation
Click to show internal directories.
Click to hide internal directories.