Documentation
¶
Index ¶
- type HandlerFactory
- type InstallHandler
- func (h *InstallHandler) BuildWorkflow(currentState state.State, inputs models.UserInputs[models.ClusterInputs]) (*automa.WorkflowBuilder, error)
- func (h *InstallHandler) HandleIntent(ctx context.Context, intent models.Intent, ...) (*automa.Report, error)
- func (h *InstallHandler) PrepareEffectiveInputs(intent models.Intent, inputs models.UserInputs[models.ClusterInputs]) (*models.UserInputs[models.ClusterInputs], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFactory ¶
type HandlerFactory struct {
// contains filtered or unexported fields
}
func NewHandlerFactory ¶
func NewHandlerFactory( runtime *rsl.RuntimeResolver, ) (*HandlerFactory, error)
NewHandlerFactory validates dependencies and returns a HandlerFactory with all handlers initialized. All dependencies are required; any nil returns an error.
func (*HandlerFactory) ForAction ¶
func (h *HandlerFactory) ForAction( action models.ActionType, ) (bll.IntentHandler[models.ClusterInputs], error)
ForAction returns the appropriate IntentHandler for the given action, or an error if the action is unsupported.
type InstallHandler ¶
type InstallHandler struct {
// contains filtered or unexported fields
}
func NewInstallHandler ¶
func NewInstallHandler( base bll.BaseHandler[models.ClusterInputs], runtime *rsl.ClusterRuntimeResolver, mr software.MachineRuntime) *InstallHandler
func (*InstallHandler) BuildWorkflow ¶
func (h *InstallHandler) BuildWorkflow( currentState state.State, inputs models.UserInputs[models.ClusterInputs], ) (*automa.WorkflowBuilder, error)
func (*InstallHandler) HandleIntent ¶
func (h *InstallHandler) HandleIntent( ctx context.Context, intent models.Intent, inputs models.UserInputs[models.ClusterInputs], ) (*automa.Report, error)
HandleIntent delegates to the shared BaseHandler which orchestrates all block-node intents.
func (*InstallHandler) PrepareEffectiveInputs ¶
func (h *InstallHandler) PrepareEffectiveInputs( intent models.Intent, inputs models.UserInputs[models.ClusterInputs], ) (*models.UserInputs[models.ClusterInputs], error)
Click to show internal directories.
Click to hide internal directories.