cluster

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseImpl

type CaseImpl struct {
	// contains filtered or unexported fields
}

CaseImpl case

func (*CaseImpl) Components

func (c *CaseImpl) Components() ComponentUseCase

Components components

func (*CaseImpl) GlobalConfigs

func (c *CaseImpl) GlobalConfigs() GlobalConfigUseCase

GlobalConfigs config

func (*CaseImpl) Install

func (c *CaseImpl) Install() InstallUseCase

Install install

type ComponentUseCase

type ComponentUseCase interface {
	Get(name string) (*v1.RbdComponentStatus, error)
	List() ([]*v1.RbdComponentStatus, error)
}

ComponentUseCase cluster componse case

type GlobalConfigUseCase

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

GlobalConfigUseCase global config case

type IClusterCase

type IClusterCase interface {
	GlobalConfigs() GlobalConfigUseCase
	Components() ComponentUseCase
	Install() InstallUseCase
}

IClusterCase cluster case

func NewClusterCase

func NewClusterCase(conf *option.Config) IClusterCase

NewClusterCase new cluster case

type InstallUseCase

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

InstallUseCase cluster install case

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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