names

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package names holds the names of the laboratory that callers outside it (the daemon) need.

Index

Constants

View Source
const (
	ReasonContainerdRootMissing = "CONTAINERD_ROOT_MISSING"
	ReasonSnapshotterMissing    = "SNAPSHOTTER_MISSING"
	ReasonRuntimeSocket         = "RUNTIME_SOCKET_UNAVAILABLE"
	ReasonSnapshotRegistry      = "SNAPSHOT_REGISTRY_UNREACHABLE"
	ReasonCgroupV2Missing       = "CGROUP_V2_MISSING"
	ReasonPersistenceDisabled   = "PERSISTENCE_DISABLED"
	ReasonObservationDisabled   = "OBSERVATION_DISABLED"
	ReasonNodeUnconfirmed       = "NODE_UNCONFIRMED"
)

The reasons GetFeatures gives for a feature the cluster is configured for but its nodes do not confirm (StatePersistenceFeature.unavailable_reason, LifecycleFeature.unavailable_reason): a fixed code and a count, "<CODE>:<n>/<m>", with n the lab nodes that do not confirm and m the lab nodes asked. Never a node name, a path or an error text. The codes are the allow-list of a caller.

Variables

View Source
var ReservedDeviceNames = []string{"vpn", "gateway", "internet"}

ReservedDeviceNames are the names of the endpoints the platform provides in every lab (the VPN, the internet gateway): a device cannot take them, and the agent refuses a lab that does. Callers validate their topologies against this list instead of copying it.

UnavailableReasonCodes is the list of the codes.

Functions

func ParseUnavailableReason

func ParseUnavailableReason(s string) (code string, unconfirmed, asked int, err error)

ParseUnavailableReason reads "<CODE>:<n>/<m>"; an error for anything that is not a known code with 0 <= n <= m and m > 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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