cluster

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

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

func (*DefaultManager) Create

func (d *DefaultManager) Create(name string, started bool) error

func (*DefaultManager) Delete

func (d *DefaultManager) Delete(name string, force bool) error

func (*DefaultManager) Get

func (d *DefaultManager) Get(name string) (*data.Cluster, error)

func (*DefaultManager) GetConfigManager

func (d *DefaultManager) GetConfigManager() pkgconfig.Manager

func (*DefaultManager) GetNodeManager

func (d *DefaultManager) GetNodeManager() node.Manager

func (*DefaultManager) Init

func (d *DefaultManager) Init(cluster *pkgconfig.Cluster) error

func (*DefaultManager) List

func (d *DefaultManager) List() ([]*data.Cluster, error)

func (*DefaultManager) SetConfigManager added in v0.2.0

func (d *DefaultManager) SetConfigManager(configManager pkgconfig.Manager)

func (*DefaultManager) SetNodeManager added in v0.2.0

func (d *DefaultManager) SetNodeManager(nodeManager node.Manager)

type Manager

type Manager interface {
	Init(cluster *pkgconfig.Cluster) error
	Create(name string, started bool) error
	Delete(name string, force bool) error
	Get(name string) (*data.Cluster, error)
	List() ([]*data.Cluster, error)
	GetNodeManager() node.Manager
	GetConfigManager() pkgconfig.Manager
}

func NewDefaultManager

func NewDefaultManager() Manager

Jump to

Keyboard shortcuts

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