Documentation ¶
Index ¶
- Variables
- func NewClusterCase(conf *config.Config, repo cluster.Repository, ...) cluster.IClusterUcase
- func NewClusterUsecase(cfg *config.Config, repo cluster.Repository, cptUcase cluster.ComponentUsecase, ...) cluster.Usecase
- func NewComponentUsecase(cfg *config.Config, storer store.Storer) cluster.ComponentUsecase
- func NewGlobalConfigUseCase(cfg *config.Config) cluster.GlobalConfigUseCase
- type CaseImpl
- type GlobalConfigUseCaseImpl
- func (cc *GlobalConfigUseCaseImpl) Address() (string, error)
- func (cc *GlobalConfigUseCaseImpl) GlobalConfigs() (*model.GlobalConfigs, error)
- func (cc *GlobalConfigUseCaseImpl) UpdateGatewayIP(gatewayIP string) error
- func (cc *GlobalConfigUseCaseImpl) UpdateGlobalConfig(data *v1.GlobalConfigs) error
- type InstallUseCaseImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StepSetting StepSetting StepSetting = "step_setting" // StepPrepareHub step prepare hub StepPrepareHub = "step_prepare_hub" // StepDownload StepDownload StepDownload = "step_download" // StepPrepareInfrastructure StepPrepareInfrastructure StepPrepareInfrastructure = "step_prepare_infrastructure" // StepUnpack StepUnpack StepUnpack = "step_unpacke" // StepHandleImage StepHandleImage StepHandleImage = "step_handle_image" // StepInstallComponent StepInstallComponent StepInstallComponent = "step_install_component" )
View Source
var ( // InstallStatusWaiting InstallStatus_Waiting InstallStatusWaiting = "status_waiting" // InstallStatusProcessing InstallStatus_Processing InstallStatusProcessing = "status_processing" // InstallStatusFinished InstallStatus_Finished InstallStatusFinished = "status_finished" // InstallStatusFailed InstallStatus_Failed InstallStatusFailed = "status_failed" )
Functions ¶
func NewClusterCase ¶
func NewClusterCase(conf *config.Config, repo cluster.Repository, rainbondKubeClient versioned.Interface, nodestorer nodestore.Interface, storer store.Storer) cluster.IClusterUcase
NewClusterCase new cluster case
func NewClusterUsecase ¶
func NewClusterUsecase(cfg *config.Config, repo cluster.Repository, cptUcase cluster.ComponentUsecase, nodestorer nodestore.Interface) cluster.Usecase
NewClusterUsecase creates a new cluster.Usecase.
func NewComponentUsecase ¶
NewComponentUsecase new component usecase.
func NewGlobalConfigUseCase ¶
func NewGlobalConfigUseCase(cfg *config.Config) cluster.GlobalConfigUseCase
NewGlobalConfigUseCase new global config case
Types ¶
type CaseImpl ¶
type CaseImpl struct {
// contains filtered or unexported fields
}
CaseImpl case
func (*CaseImpl) Components ¶
func (c *CaseImpl) Components() cluster.ComponentUsecase
Components components
func (*CaseImpl) GlobalConfigs ¶
func (c *CaseImpl) GlobalConfigs() cluster.GlobalConfigUseCase
GlobalConfigs config
type GlobalConfigUseCaseImpl ¶
type GlobalConfigUseCaseImpl struct {
// contains filtered or unexported fields
}
GlobalConfigUseCaseImpl case
func (*GlobalConfigUseCaseImpl) Address ¶
func (cc *GlobalConfigUseCaseImpl) Address() (string, error)
Address address
func (*GlobalConfigUseCaseImpl) GlobalConfigs ¶
func (cc *GlobalConfigUseCaseImpl) GlobalConfigs() (*model.GlobalConfigs, error)
GlobalConfigs global configs
func (*GlobalConfigUseCaseImpl) UpdateGatewayIP ¶ added in v1.3.0
func (cc *GlobalConfigUseCaseImpl) UpdateGatewayIP(gatewayIP string) error
func (*GlobalConfigUseCaseImpl) UpdateGlobalConfig ¶
func (cc *GlobalConfigUseCaseImpl) UpdateGlobalConfig(data *v1.GlobalConfigs) error
UpdateGlobalConfig update gloobal config
type InstallUseCaseImpl ¶
type InstallUseCaseImpl struct {
// contains filtered or unexported fields
}
InstallUseCaseImpl install case
func NewInstallUseCase ¶
func NewInstallUseCase(cfg *config.Config, rainbondKubeClient versioned.Interface, componentUsecase cluster.ComponentUsecase, clusterUcase cluster.Usecase) *InstallUseCaseImpl
NewInstallUseCase new install case
func (*InstallUseCaseImpl) InstallStatus ¶
func (ic *InstallUseCaseImpl) InstallStatus() (model.StatusRes, error)
InstallStatus install status
func (*InstallUseCaseImpl) RestartPackage ¶ added in v1.3.0
func (ic *InstallUseCaseImpl) RestartPackage() error
RestartPackage -
Click to show internal directories.
Click to hide internal directories.