tag

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 2 Imported by: 29

Documentation

Index

Constants

View Source
const (
	// AccountingProductID tag to store an accounting product ID
	AccountingProductID = "accounting.metal-stack.io/productid"
	// AccountingContractID tag to store an accounting contract ID
	AccountingContractID = "accounting.metal-stack.io/contractid"
	// AccountingDebtor tag to store an accounting debtor
	AccountingDebtor = "accounting.metal-stack.io/debtor"
	// AccountingNetworkTrafficExternal tag to indicate external network traffic
	AccountingNetworkTrafficExternal = "accounting.metal-stack.io/network-traffic-external"
	// AccountingNetworkTrafficInternal tag to indicate internal network traffic
	AccountingNetworkTrafficInternal = "accounting.metal-stack.io/network-traffic-internal"
	// AccountingVolumeReplicas tag to store accounting volume replicas
	AccountingVolumeReplicas = "accounting.metal-stack.io/volume-replicas"
	// AccountingVolumeQoSPolicyID tag to store accounting volume qos policy ID
	AccountingVolumeQoSPolicyID = "accounting.metal-stack.io/volume-qos-policy-id"
	// AccountingVolumeQoSPolicyName tag to store accounting volume qos policy name
	AccountingVolumeQoSPolicyName = "accounting.metal-stack.io/volume-qos-policy-name"
	// AccountingVolumeEncryption tag to store accounting volume encryption information
	AccountingVolumeEncryption = "accounting.metal-stack.io/volume-encryption"
	// AccountingVolumeSnapshotSource tag to store accounting volume snapshot source uuid
	AccountingVolumeSnapshotSource = "accounting.metal-stack.io/volume-snapshot-source"
)
View Source
const (
	// ClusterID tag to store the id of the cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterID
	ClusterID = "cluster.metal-stack.io/id"
	// ClusterName tag to store the name of the cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterName
	ClusterName = "cluster.metal-stack.io/name"
	// ClusterDescription tag to store the description of the cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterDescription
	ClusterDescription = "cluster.metal-stack.io/description"
	// ClusterProject tag to store the project the cluster belongs to
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterProject
	ClusterProject = "cluster.metal-stack.io/project"
	// ClusterPartition tag to store the partition of the cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterPartition
	ClusterPartition = "cluster.metal-stack.io/partition"
	// ClusterTenant tag to store the tenant of the cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterTenant
	ClusterTenant = "cluster.metal-stack.io/tenant"
	// ClusterServiceFQN tag to identify a service running in the cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterServiceFQN
	ClusterServiceFQN = "cluster.metal-stack.io/id/namespace/service"
	// ClusterEgress tag to identify egress ips used for a cluster
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterEgress
	ClusterEgress = "cluster.metal-stack.io/id/egress"
	// ClusterOwner tag to store the name of the cluster owner
	// Deprecated use github.com/metal-stack/api/go/tag/ClusterOwner
	ClusterOwner = "cluster.metal-stack.io/owner"
)
View Source
const (
	// MachineID tag to store machine ID
	// Deprecated use github.com/metal-stack/api/go/tag/MachineID
	MachineID = "machine.metal-stack.io/id"
	// MachineName tag to store machine name
	// Deprecated use github.com/metal-stack/api/go/tag/MachineName
	MachineName = "machine.metal-stack.io/name"
	// MachineDescription tag to store machine description
	MachineDescription = "machine.metal-stack.io/description"
	// MachineProject tag to store the project where the machine belongs to
	// Deprecated use github.com/metal-stack/api/go/tag/MachineProject
	MachineProject = "machine.metal-stack.io/project"
	// MachineTenant tag to store the tenant the machine belongs to
	// Deprecated use github.com/metal-stack/api/go/tag/MachineTenant
	MachineTenant = "machine.metal-stack.io/tenant"
	// MachineNetworkPrimaryASN tag to store the primary BGP ASN the machine announces.
	// Deprecated use github.com/metal-stack/api/go/tag/MachineNetworkPrimaryASN
	MachineNetworkPrimaryASN = "machine.metal-stack.io/network.primary.asn"
	// MachineRack tag to store the rack that this machine is placed in.
	// Deprecated use github.com/metal-stack/api/go/tag/MachineRack
	MachineRack = "machine.metal-stack.io/rack"
	// MachineChassis tag to store the machine chassis.
	// Deprecated use github.com/metal-stack/api/go/tag/MachineChassis
	MachineChassis = "machine.metal-stack.io/chassis"
)
View Source
const (
	// NetworkDefault indicates a network that can serve as a default network for cluster creation
	// there should only be one default network in a metal control plane, otherwise behavior will be non-deterministic
	// Deprecated use github.com/metal-stack/api/go/tag/NetworkDefault
	NetworkDefault = "network.metal-stack.io/default"
	// NetworkDefaultExternal indicates a network that can serve as a default for IP allocations
	// Deprecated use github.com/metal-stack/api/go/tag/NetworkDefaultExternal
	NetworkDefaultExternal = "network.metal-stack.io/default-external"
	// NetworkPartitionStorage indicates a network that can serve as a storage network in a partition
	// Deprecated use github.com/metal-stack/api/go/tag/NetworkPartitionStorage
	NetworkPartitionStorage = "network.metal-stack.io/partition-storage"
)
View Source
const (
	// PartitionType describes a type of a partition, i.e. a partition that is located in a single zone inside a region or a partition which spreads machines across a region using the metal-stack rack spreading feature.
	PartitionType = "partition.metal-stack.io/type"

	// PartitionTypeSingleZone describes a partition that is located in a single zone inside a region.
	PartitionTypeSingleZone = "single-zone"

	// PartitionTypeRegionalAutospread describes a partition, which spreads machines across a region using the metal-stack rack spreading feature.
	PartitionTypeRegionalAutospread = "regional-autospread"
)

Variables

This section is empty.

Functions

func AccountingTags added in v0.7.3

func AccountingTags() map[string]bool

AccountingTags returns all accounting tags

func New added in v0.13.2

func New(key, value string) string

New returns a new tag in the format key=value

Types

type TagMap added in v0.11.5

type TagMap map[string]string

func NewTagMap added in v0.11.5

func NewTagMap(labels []string) TagMap

NewTagMap constructs a map of a list of labels.

func (TagMap) Contains added in v0.11.5

func (tm TagMap) Contains(key, value string) bool

Contains returns true when the given key is contained in the label map.

func (TagMap) Get added in v0.13.2

func (tm TagMap) Get(key string) (string, error)

Get returns the whole tag when the given key is contained in the label map.

func (TagMap) Slice added in v0.19.2

func (tm TagMap) Slice() []string

Slice returns the tagMap as a slice, duplicates removed

func (TagMap) Value added in v0.11.5

func (tm TagMap) Value(key string) (string, bool)

Value returns true when the label map contains the given key and returns the corresponding value.

Jump to

Keyboard shortcuts

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