nodesinfo

package
v3.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(data M) error

Types

type M

type M map[string]T

M is the dataset exposed via the GET /nodes_info handler, used by nodes to: * expand node selector expressions based on labels * setup clusterwide lun mapping from pools backed by san arrays

func Load

func Load() (M, error)

func (M) GetNodesWithAnyPaths

func (m M) GetNodesWithAnyPaths(paths san.Paths) []string

GetNodesWithAnyPaths return the list of nodes having any of the given paths.

func (M) Keys

func (m M) Keys() []string

type T

type T struct {
	Env    string    `json:"env"`
	Labels label.M   `json:"labels"`
	Paths  san.Paths `json:"paths"`

	Lsnr daemonsubsystem.Listener `json:"listener"`
}

Jump to

Keyboard shortcuts

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