discover

package
v1.20.10 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 19 Imported by: 18 modules, 55 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package discover to discover devices on storage nodes.

Index

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.

func ListDevices

func ListDevices(ctx context.Context, clusterdContext *clusterd.Context, namespace, nodeName string) (map[string][]sys.LocalDisk, error)

ListDevices lists all devices discovered on all nodes or specific node if node name is provided.

func ListDevicesInUse

func ListDevicesInUse(ctx context.Context, clusterdContext *clusterd.Context, namespace, nodeName string) ([]sys.LocalDisk, error)

ListDevicesInUse lists all devices on a node that are already used by existing clusters.

Types

type Discover

type Discover struct {
	// contains filtered or unexported fields
}

Discover reference to be deployed

func New

func New(clientset kubernetes.Interface) *Discover

New creates an instance of Discover

func (*Discover) Start

func (d *Discover) Start(ctx context.Context, namespace, discoverImage, securityAccount string, useCephVolume bool) error

Start the discover

func (*Discover) Stop added in v1.5.6

func (d *Discover) Stop(ctx context.Context, namespace string) error

Stop the discover

Jump to

Keyboard shortcuts

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