cluster

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentUsecase

type ComponentUsecase interface {
	Get(name string) (*v1.RbdComponentStatus, error)
	List(isInit bool) ([]*v1.RbdComponentStatus, error)
	ListComponents() []*rainbondv1alpha1.RbdComponent
	ListPodsByComponent(cpn *rainbondv1alpha1.RbdComponent) ([]*corev1.Pod, error)
}

ComponentUsecase cluster componse case

type GlobalConfigUseCase

type GlobalConfigUseCase interface {
	GlobalConfigs() (*model.GlobalConfigs, error)
	UpdateGlobalConfig(config *v1.GlobalConfigs) error
	Address() (string, error)
	UpdateGatewayIP(gatewayIP string) error
}

GlobalConfigUseCase global config case

type IClusterUcase

type IClusterUcase interface {
	GlobalConfigs() GlobalConfigUseCase
	Components() ComponentUsecase
	Install() InstallUseCase
	Cluster() Usecase
}

IClusterUcase cluster case

type InstallUseCase

type InstallUseCase interface {
	Install() error
	InstallStatus() (model.StatusRes, error)
	RestartPackage() error
}

InstallUseCase cluster install case

type Repository

type Repository interface {
	EnterpriseID(eid string) string
}

Repository represent the cluster's repository contract

type Usecase

type Usecase interface {
	PreCheck() (*v1.ClusterPreCheckResp, error)
	Status() (*model.ClusterStatus, error)
	Init() error
	UnInstall() error
	StatusInfo() (*v1.ClusterStatusInfo, error)
	ClusterNodes(query string, runGateway bool) []*v1.K8sNode
	CompleteNodes(nodes []*v1.K8sNode, runGateway bool) ([]*v1.K8sNode, []*v1.K8sNode)
}

Usecase cluster case

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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