Documentation
¶
Index ¶
- Variables
- func NewClusterCase(conf *option.Config, repo cluster.Repository, ...) cluster.IClusterCase
- func NewComponentUsecase(cfg *option.Config) cluster.ComponentUseCase
- type CaseImpl
- type ClusterUsecaseImpl
- type ComponentUseCase
- type ComponentUsecaseImpl
- type GlobalConfigUseCaseImpl
- 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 *option.Config, repo cluster.Repository, rainbondKubeClient versioned.Interface) cluster.IClusterCase
NewClusterCase new cluster case
func NewComponentUsecase ¶
func NewComponentUsecase(cfg *option.Config) cluster.ComponentUseCase
NewComponentUsecase new componse case impl
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 ClusterUsecaseImpl ¶
type ClusterUsecaseImpl struct {
// contains filtered or unexported fields
}
ClusterUsecaseImpl cluster usecase impl
func NewClusterUsecaseImpl ¶
func NewClusterUsecaseImpl(cfg *option.Config, repo cluster.Repository, componentUsecase ComponentUseCase) *ClusterUsecaseImpl
NewClusterUsecaseImpl new cluster case impl
func (*ClusterUsecaseImpl) Status ¶
func (c *ClusterUsecaseImpl) Status() (*model.ClusterStatus, error)
Status status
func (*ClusterUsecaseImpl) UnInstall ¶
func (c *ClusterUsecaseImpl) UnInstall() error
UnInstall uninstall cluster reset cluster
type ComponentUseCase ¶
type ComponentUseCase interface {
Get(name string) (*v1.RbdComponentStatus, error)
List(isInit bool) ([]*v1.RbdComponentStatus, error)
}
ComponentUseCase cluster componse case
type ComponentUsecaseImpl ¶
type ComponentUsecaseImpl struct {
// contains filtered or unexported fields
}
ComponentUsecaseImpl cluster
func (*ComponentUsecaseImpl) Get ¶
func (cc *ComponentUsecaseImpl) Get(name string) (*v1.RbdComponentStatus, error)
Get get
func (*ComponentUsecaseImpl) List ¶
func (cc *ComponentUsecaseImpl) List(isInit bool) ([]*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, rainbondKubeClient versioned.Interface, componentUsecase ComponentUseCase) *InstallUseCaseImpl
NewInstallUseCase new install case
func (*InstallUseCaseImpl) InstallStatus ¶
func (ic *InstallUseCaseImpl) InstallStatus() (model.StatusRes, error)
InstallStatus install status
Click to show internal directories.
Click to hide internal directories.