lsm

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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 LogicalVolume struct {
	Name        string
	DeviceClass string
	Size        uint64
}

type NodeStats

type NodeStats struct {
	DeviceClasses []*DeviceClassStats
	Default       *DeviceClassStats
}

type VolumeStats

type VolumeStats struct {
	TotalBytes uint64
	UsedBytes  uint64
}

Jump to

Keyboard shortcuts

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