Documentation ¶
Index ¶
- func NewHandler(action ActionType) handlerspi.StateMachineHandler
- type ActionType
- type ComponentHandler
- func (h ComponentHandler) CheckDependencies(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) DoWork(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) DoWorkUpdateStatus(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) GetWorkName() string
- func (h ComponentHandler) IsWorkDone(ctx handlerspi.HandlerContext) (bool, result.Result)
- func (h ComponentHandler) IsWorkNeeded(ctx handlerspi.HandlerContext) (bool, result.Result)
- func (h ComponentHandler) PostWork(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) PostWorkUpdateStatus(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) PreWork(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) PreWorkUpdateStatus(ctx handlerspi.HandlerContext) result.Result
- func (h ComponentHandler) WorkCompletedUpdateStatus(ctx handlerspi.HandlerContext) result.Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(action ActionType) handlerspi.StateMachineHandler
Types ¶
type ActionType ¶
type ActionType string
const ( InstallAction ActionType = constants.InstallOperation UpdateAction ActionType = constants.UpdateOperation )
type ComponentHandler ¶
type ComponentHandler struct {
// contains filtered or unexported fields
}
func (ComponentHandler) CheckDependencies ¶
func (h ComponentHandler) CheckDependencies(ctx handlerspi.HandlerContext) result.Result
CheckDependencies checks if the dependencies are ready
func (ComponentHandler) DoWork ¶
func (h ComponentHandler) DoWork(ctx handlerspi.HandlerContext) result.Result
DoWork installs the module using Helm
func (ComponentHandler) DoWorkUpdateStatus ¶
func (h ComponentHandler) DoWorkUpdateStatus(ctx handlerspi.HandlerContext) result.Result
DoWorkUpdateStatus does th status update
func (ComponentHandler) GetWorkName ¶
func (h ComponentHandler) GetWorkName() string
GetWorkName returns the work name
func (ComponentHandler) IsWorkDone ¶
func (h ComponentHandler) IsWorkDone(ctx handlerspi.HandlerContext) (bool, result.Result)
IsWorkDone Indicates whether a module is installed and ready
func (ComponentHandler) IsWorkNeeded ¶
func (h ComponentHandler) IsWorkNeeded(ctx handlerspi.HandlerContext) (bool, result.Result)
IsWorkNeeded returns true if install/update is needed
func (ComponentHandler) PostWork ¶
func (h ComponentHandler) PostWork(ctx handlerspi.HandlerContext) result.Result
PostWork does installation post-work
func (ComponentHandler) PostWorkUpdateStatus ¶
func (h ComponentHandler) PostWorkUpdateStatus(ctx handlerspi.HandlerContext) result.Result
PostWorkUpdateStatus does the post-work status update
func (ComponentHandler) PreWork ¶
func (h ComponentHandler) PreWork(ctx handlerspi.HandlerContext) result.Result
PreWork does the pre-work
func (ComponentHandler) PreWorkUpdateStatus ¶
func (h ComponentHandler) PreWorkUpdateStatus(ctx handlerspi.HandlerContext) result.Result
PreWorkUpdateStatus does the pre-Work status update
func (ComponentHandler) WorkCompletedUpdateStatus ¶
func (h ComponentHandler) WorkCompletedUpdateStatus(ctx handlerspi.HandlerContext) result.Result
WorkCompletedUpdateStatus updates the status to completed
Click to show internal directories.
Click to hide internal directories.