discover

package
v0.0.0-...-331d270 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

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, data map[string]string, useCephVolume bool) error

Start the discover

func (*Discover) Stop

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