pool

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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 Manager

type Manager interface {
	// Init Storage Pool
	Init() error

	// CreatePool create StoragePool
	CreatePool(poolType types.DevType) error

	// PoolExist returns true if exist
	PoolExist(poolName string) (bool, error)

	// GetPool returns pool info, including capacity, volume counts, disk counts...
	GetPool(poolName string) (*Pool, error)

	// ExtendPool extend StoragePool with new disk
	ExtendPool(poolName string, devLinks []string, serial string) (bool, error)
}

func New

func New() Manager

type Pool

type Pool struct {
	Name string
}

Pool contains disks, volume, pool info

Jump to

Keyboard shortcuts

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