Documentation ¶
Overview ¶
Package discover to discover devices on storage nodes.
Index ¶
- func FreeDevices(context *clusterd.Context, nodeName, clusterName string) error
- func FreeDevicesByCluster(context *clusterd.Context, clusterName string) error
- func GetAvailableDevices(context *clusterd.Context, nodeName, clusterName string, ...) ([]rookalpha.Device, error)
- func ListDevices(context *clusterd.Context, namespace, nodeName string) (map[string][]sys.LocalDisk, error)
- func ListDevicesInUse(context *clusterd.Context, namespace, nodeName string) ([]sys.LocalDisk, error)
- type Discover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreeDevices ¶
FreeDevices frees up devices used by a cluster on a node.
func FreeDevicesByCluster ¶
FreeDevicesByCluster frees devices on all nodes that are used by the cluster
func GetAvailableDevices ¶
func GetAvailableDevices(context *clusterd.Context, nodeName, clusterName string, devices []rookalpha.Device, filter string, useAllDevices bool) ([]rookalpha.Device, error)
GetAvailableDevices conducts outter join using input filters with free devices that a node has. It marks the devices from join result as in-use.
Types ¶
Click to show internal directories.
Click to hide internal directories.