Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StepSetting StepSetting StepSetting = "step_setting" // 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 ¶
This section is empty.
Types ¶
type ComponentUseCase ¶
type ComponentUseCase interface { Get(name string) (*v1.RbdComponentStatus, error) List() ([]*v1.RbdComponentStatus, error) }
ComponentUseCase cluster componse case
type ComponentUsecaseImpl ¶
type ComponentUsecaseImpl struct {
// contains filtered or unexported fields
}
ComponentUsecaseImpl cluster
func NewComponentUsecase ¶
func NewComponentUsecase(cfg *option.Config) *ComponentUsecaseImpl
NewComponentUsecase new componse case impl
func (*ComponentUsecaseImpl) Get ¶
func (cc *ComponentUsecaseImpl) Get(name string) (*v1.RbdComponentStatus, error)
Get get
func (*ComponentUsecaseImpl) List ¶
func (cc *ComponentUsecaseImpl) List() ([]*v1.RbdComponentStatus, error)
List list
type GlobalConfigUseCaseImpl ¶
type GlobalConfigUseCaseImpl struct {
// contains filtered or unexported fields
}
GlobalConfigUseCaseImpl case
func NewGlobalConfigUseCase ¶
func NewGlobalConfigUseCase(cfg *option.Config) *GlobalConfigUseCaseImpl
NewGlobalConfigUseCase new global config 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) Uninstall ¶
func (cc *GlobalConfigUseCaseImpl) Uninstall() error
Uninstall reset cluster
func (*GlobalConfigUseCaseImpl) UpdateGlobalConfig ¶
func (cc *GlobalConfigUseCaseImpl) UpdateGlobalConfig(data *model.GlobalConfigs) error
UpdateGlobalConfig update gloobal config
type InstallUseCaseImpl ¶
type InstallUseCaseImpl struct {
// contains filtered or unexported fields
}
InstallUseCaseImpl install case
func NewInstallUseCase ¶
func NewInstallUseCase(cfg *option.Config, componentUsecase ComponentUseCase) *InstallUseCaseImpl
NewInstallUseCase new install case
func (*InstallUseCaseImpl) BeforeInstall ¶
func (ic *InstallUseCaseImpl) BeforeInstall() error
BeforeInstall before install check
func (*InstallUseCaseImpl) InstallPreCheck ¶
func (ic *InstallUseCaseImpl) InstallPreCheck() (model.StatusRes, error)
InstallPreCheck pre check
func (*InstallUseCaseImpl) InstallStatus ¶
func (ic *InstallUseCaseImpl) InstallStatus() (model.StatusRes, error)
InstallStatus install status
Click to show internal directories.
Click to hide internal directories.