Documentation ¶
Index ¶
- type DefaultManager
- func (d *DefaultManager) Create(name string, started bool) error
- func (d *DefaultManager) Delete(name string, force bool) error
- func (d *DefaultManager) Get(name string) (*data.Cluster, error)
- func (d *DefaultManager) GetConfigManager() pkgconfig.Manager
- func (d *DefaultManager) GetNodeManager() node.Manager
- func (d *DefaultManager) Init(cluster *pkgconfig.Cluster) error
- func (d *DefaultManager) List() ([]*data.Cluster, error)
- func (d *DefaultManager) SetConfigManager(configManager pkgconfig.Manager)
- func (d *DefaultManager) SetNodeManager(nodeManager node.Manager)
- type Manager
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) GetConfigManager ¶
func (d *DefaultManager) GetConfigManager() pkgconfig.Manager
func (*DefaultManager) GetNodeManager ¶
func (d *DefaultManager) GetNodeManager() node.Manager
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
Click to show internal directories.
Click to hide internal directories.