Documentation ¶
Overview ¶
Package discover to discover devices on storage nodes.
Index ¶
- func GetAvailableDevices(context *clusterd.Context, nodeName, clusterName string, ...) ([]rookv1.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 GetAvailableDevices ¶
func GetAvailableDevices(context *clusterd.Context, nodeName, clusterName string, devices []rookv1.Device, filter string, useAllDevices bool) ([]rookv1.Device, error)
GetAvailableDevices conducts outer 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.