Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDeviceClass = errors.New("no such device class")
View Source
var ErrNoVolume = errors.New("no such volume")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
manager.Runnable
GetLVList(deviceClass string) ([]*LogicalVolume, error)
CreateLV(name, deviceClass string, noCow bool, size uint64) (*LogicalVolume, error)
RemoveLV(name, deviceClass string) error
ResizeLV(name, deviceClass string, size uint64) error
CreateLVSnapshot(name, deviceClass, sourceVolID string, size uint64, accessType string) (*LogicalVolume, error)
GetPath(v *LogicalVolume) string
VolumeStats(name, deviceClass string) (*VolumeStats, error)
NodeStats() (*NodeStats, error)
Watch() chan struct{}
}
type DeviceClassStats ¶
type DeviceClassStats struct {
VolumeStats
DeviceClass string
}
type LogicalVolume ¶
type NodeStats ¶
type NodeStats struct {
DeviceClasses []*DeviceClassStats
Default *DeviceClassStats
}
type VolumeStats ¶
Click to show internal directories.
Click to hide internal directories.