disk

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// GetNodeDisks list all disk located on the node
	GetNodeDisks(node string) ([]types.Disk, error)

	GetNodeAvailableDisks(node string) ([]types.Disk, error)

	MarkNodeDiskInuse(node string, disk *types.Disk) error

	MarkNodeDiskAvailable(node string, disk *types.Disk) error

	NodeIsReady(node string) (bool, error)

	ListLocalDiskByNodeDevicePath(nodeName, devicePath string) ([]v1alpha1.LocalDisk, error)
}

Manager manage all disks in cluster The operation here needs to ensure thread safety

func New

func New() Manager

Jump to

Keyboard shortcuts

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