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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.