common

package
v0.69.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLAB_AUTHORISED_GROUP = "clab_admins"
	ROOT_UID              = 0
	NOMODIFY              = -1
)

Variables

View Source
var (
	Debug   bool
	Timeout time.Duration
)
View Source
var (
	VarsFile string
	Graph    bool
	Runtime  string
)
View Source
var Graceful bool

Use graceful shutdown.

View Source
var Name string

lab Name.

View Source
var NodeFilter []string

subset of nodes to work with.

View Source
var Topo string

path to the topology file.

Functions

func CheckAndGetRootPrivs

func CheckAndGetRootPrivs(_ *cobra.Command, _ []string) error

func CreateLabelsMap added in v0.69.0

func CreateLabelsMap(labName, containerName, owner, toolType string) map[string]string

CreateLabelsMap creates container labels map for additional containers launched after the lab is up. Such as sshx, gotty, etc.

func DropRootPrivs

func DropRootPrivs() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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