usecase

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

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

func NewComponentUsecase(cfg *config.Config, storer store.Storer) cluster.ComponentUsecase

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

func (c *CaseImpl) Cluster() cluster.Usecase

Cluster cluster impl

func (*CaseImpl) Components

func (c *CaseImpl) Components() cluster.ComponentUsecase

Components components

func (*CaseImpl) GlobalConfigs

func (c *CaseImpl) GlobalConfigs() cluster.GlobalConfigUseCase

GlobalConfigs config

func (*CaseImpl) Install

func (c *CaseImpl) Install() cluster.InstallUseCase

Install install

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

func (ic *InstallUseCaseImpl) Install() error

Install install

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 -

Jump to

Keyboard shortcuts

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