Documentation ¶
Overview ¶
Package discover to discover devices on storage nodes.
Index ¶
- func GetAvailableDevices(ctx context.Context, clusterdContext *clusterd.Context, ...) ([]cephv1.Device, error)
- func ListDevices(ctx context.Context, clusterdContext *clusterd.Context, ...) (map[string][]sys.LocalDisk, error)
- func ListDevicesInUse(ctx context.Context, clusterdContext *clusterd.Context, ...) ([]sys.LocalDisk, error)
- type Discover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableDevices ¶
func GetAvailableDevices(ctx context.Context, clusterdContext *clusterd.Context, nodeName, clusterName string, devices []cephv1.Device, filter string, useAllDevices bool) ([]cephv1.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 ¶
type Discover ¶
type Discover struct {
// contains filtered or unexported fields
}
Discover reference to be deployed
Click to show internal directories.
Click to hide internal directories.