discover

package
v1.21.2 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, 51 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 unused devices.

Index

Constants

View Source
const (
	DiscoverDaemonUdev = "DISCOVER_DAEMON_UDEV_BLACKLIST"
)

Variables

View Source
var (

	// AppName is the name of the pod
	AppName = "rook-discover"
	// NodeAttr is the attribute of that node
	NodeAttr = "rook.io/node"
	// LocalDiskCMData is the data name of the config map storing devices
	LocalDiskCMData = "devices"
	// LocalDiskCMName is name of the config map storing devices
	LocalDiskCMName = "local-device-%s"
)

Functions

func DeviceListsEqual added in v1.0.0

func DeviceListsEqual(old, new string) (bool, error)

DeviceListsEqual checks whether 2 lists are equal or not

func Run

func Run(ctx context.Context, context *clusterd.Context, probeInterval time.Duration, useCV bool) error

Run is the entry point of that package execution

Types

type CephVolumeInventory added in v1.2.0

type CephVolumeInventory struct {
	Path            string          `json:"path"`
	Available       bool            `json:"available"`
	RejectedReasons json.RawMessage `json:"rejected_reasons"`
	SysAPI          json.RawMessage `json:"sys_api"`
	LVS             json.RawMessage `json:"lvs"`
}

CephVolumeInventory is the Go struct representation of the json output

Jump to

Keyboard shortcuts

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