discover

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 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(context *clusterd.Context, nodeName, clusterName string, devices []rookalpha.Device, filter string, useAllDevices bool) ([]rookalpha.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(context *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(context *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(namespace, discoverImage, securityAccount string, useCephVolume bool) error

Start the discover

Jump to

Keyboard shortcuts

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