lsm

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	manager.Runnable

	GetLVList(deviceClass string) ([]*LogicalVolume, error)
	CreateLV(name, deviceClass string, size uint64, tags []string) (*LogicalVolume, error)
	RemoveLV(name, deviceClass string) error
	ResizeLV(name, deviceClass string, size uint64) error

	GetPath(v *LogicalVolume) string

	VolumeStats(name, deviceClass string) (*VolumeStats, error)
	NodeStats() (*NodeStats, error)

	Watch() chan struct{}
}

func New

func New(path string) (Client, error)

type DeviceClassStats

type DeviceClassStats struct {
	VolumeStats
	DeviceClass string
}

type LogicalVolume

type LogicalVolume struct {
	Name        string
	DeviceClass string
	Size        uint64
	Tags        []string
}

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