nodeset

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: GPL-3.0, LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nodeset provides nodeset pattern expansion for Slurm-style node specifications. It implements a subset of the ClusterShell nodeset syntax.

See: https://clustershell.readthedocs.io/en/latest/tools/nodeset.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(pattern string) ([]string, error)

Expand expands a nodeset pattern into a list of individual node names. Patterns can include:

  • Simple names: "worker-0" → ["worker-0"]
  • Comma-separated: "a,b,c" → ["a", "b", "c"]
  • Ranges: "node-[0-3]" → ["node-0", "node-1", "node-2", "node-3"]
  • Padded ranges: "node-[00-03]" → ["node-00", "node-01", "node-02", "node-03"]
  • Lists: "node-[0,2,5]" → ["node-0", "node-2", "node-5"]
  • Mixed: "node-[0-2,5]" → ["node-0", "node-1", "node-2", "node-5"]

Types

This section is empty.

Jump to

Keyboard shortcuts

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