constant

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 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

Index

Constants

View Source
const (
	// MacAddrFormatColon is a MAC address format with colon delimiters between pairs of characters.
	MacAddrFormatColon MACFormat = "colon"
	// MacAddrFormatDot is a MAC address format with dot delimiters between groups of 4 characters.
	MacAddrFormatDot MACFormat = "dot"
	// MacAddrFormatDash is a MAC address format with dash delimiters between pairs of characters.
	MacAddrFormatDash MACFormat = "dash"
	// MacAddrFormatNoDelimiter removes all delimiters from a MAC address. Note that this is not a valid MAC address format.
	// It is useful for cases where delimiters can potentially cause issues, such as in URLs.
	MacAddrFormatNoDelimiter MACFormat = "no-delimiter"
	// MacAddrFormatEmpty converts a MAC address to an empty string. Note that this is not a valid MAC address format.
	MacAddrFormatEmpty MACFormat = "empty"

	// IPXEBinaryIPXEEFI is the Tinkerbell built and embedded iPXE binary for UEFI x86_64 architectures.
	IPXEBinaryIPXEEFI IPXEBinary = "ipxe.efi"
	// IPXEBinarySNPARM64 is the Tinkerbell built and embedded iPXE binary for UEFI ARM64 architectures using iPXE's Simple Network Protocol (SNP).
	IPXEBinarySNPARM64 IPXEBinary = "snp-arm64.efi"
	// IPXEBinarySNPAMD64 is the Tinkerbell built and embedded iPXE binary for UEFI x86_64 architectures using iPXE's Simple Network Protocol (SNP).
	IPXEBinarySNPAMD64 IPXEBinary = "snp-x86_64.efi"
	// IPXEBinaryUndionlyKPXE is the Tinkerbell built and embedded iPXE binary for BIOS x86 architectures.
	IPXEBinaryUndionlyKPXE IPXEBinary = "undionly.kpxe"
	// IPXEBinaryISOEFIAMD64 is the Tinkerbell built and embedded iPXE binary for UEFI x86_64 architectures in ISO format.
	IPXEBinaryISOEFIAMD64 IPXEBinary = "ipxe.iso"
	// IPXEBinaryIMGEFIAMD64 is the Tinkerbell built and embedded iPXE binary for UEFI x86_64 architectures in IMG format.
	IPXEBinaryIMGEFIAMD64 IPXEBinary = "ipxe-efi.img"

	// AttributesAnnotation is the annotation key used to store agent attributes on any object.
	AttributesAnnotation = "tinkerbell.org/agent-attributes"

	// DisabledAnnotation is the annotation key used to indicate a resource is disabled.
	// This is a master switch that works on Tinkerbell CRs; Hardware, Workflow, and BMC.
	// The value is the reason for disabling.
	// For Hardware, disabled means that the hardware is not available for provisioning, and will be ignored by auto-enrollment and any Workflow that references it.
	// For Workflows, disabled means that the Workflow will not be executed.
	// For BMCs, disabled means that no operations against the BMC will be attempted.
	DisabledAnnotation = "tinkerbell.org/disabled"
)

Variables

This section is empty.

Functions

func IsDisabled added in v0.24.0

func IsDisabled(annotations map[string]string) (bool, string)

IsDisabled checks whether the master disabled annotation is present on a resource. Returns true and the reason if the annotation exists, false and empty string otherwise.

Types

type IPXEBinary

type IPXEBinary string

IPXEBinary is a type for iPXE binary names.

func (IPXEBinary) String

func (i IPXEBinary) String() string

type ListenerFamilies added in v0.26.0

type ListenerFamilies string

ListenerFamilies is the set of IP address families Tinkerbell listens on. It is an enum rather than a pair of toggles so that "neither family" cannot be expressed.

const (
	// ListenerFamiliesIPv4 serves IPv4 only.
	ListenerFamiliesIPv4 ListenerFamilies = "ipv4"
	// ListenerFamiliesIPv6 serves IPv6 only.
	ListenerFamiliesIPv6 ListenerFamilies = "ipv6"
	// ListenerFamiliesDual serves both families.
	ListenerFamiliesDual ListenerFamilies = "dual"
)

func (ListenerFamilies) HasV4 added in v0.26.0

func (l ListenerFamilies) HasV4() bool

HasV4 reports whether IPv4 listeners are served.

func (ListenerFamilies) HasV6 added in v0.26.0

func (l ListenerFamilies) HasV6() bool

HasV6 reports whether IPv6 listeners are served.

func (ListenerFamilies) String added in v0.26.0

func (l ListenerFamilies) String() string

type MACFormat

type MACFormat string

MACFormat is a format for a MAC address.

func (MACFormat) String

func (m MACFormat) String() string

Jump to

Keyboard shortcuts

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