registry

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DiskSuffix = "disk"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// DiscoveryResources discovery disks and volumes
	DiscoveryResources()

	// ListDisks list all registered disks
	ListDisks() []types.Disk

	ListDisksByType(devType types.DevType) []types.Disk

	GetDiskByPath(devPath string) *types.Disk

	GetVolumeByName(name string) *types.Volume

	// ListVolumes list all registered volumes
	ListVolumes() []types.Volume

	// ListVolumesByType list all registered volumes
	ListVolumesByType(devType types.DevType) []types.Volume

	DiskExist(devPath string) bool

	DiskSymbolLinkExist(symlink string) bool
}

func New

func New() Manager

Jump to

Keyboard shortcuts

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