usecase

package
v0.0.0-...-67d514a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2020 License: LGPL-3.0 Imports: 19 Imported by: 0

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

Get get

func (*ComponentUsecaseImpl) List

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) Install

func (ic *InstallUseCaseImpl) Install() error

Install install

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL