tag

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 2 Imported by: 22

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
	ClusterID = "cluster.metal-stack.io/id"
	// ClusterName tag to store the name of the cluster
	ClusterName = "cluster.metal-stack.io/name"
	// ClusterDescription tag to store the description of the cluster
	ClusterDescription = "cluster.metal-stack.io/description"
	// ClusterProject tag to store the project the cluster belongs to
	ClusterProject = "cluster.metal-stack.io/project"
	// ClusterPartition tag to store the partition of the cluster
	ClusterPartition = "cluster.metal-stack.io/partition"
	// ClusterTenant tag to store the tenant of the cluster
	ClusterTenant = "cluster.metal-stack.io/tenant"
	// ClusterServiceFQN tag to identify a service running in the cluster
	ClusterServiceFQN = "cluster.metal-stack.io/id/namespace/service"
	// ClusterEgress tag to identify egress ips used for a cluster
	ClusterEgress = "cluster.metal-stack.io/id/egress"
	// ClusterOwner tag to store the name of the cluster owner
	ClusterOwner = "cluster.metal-stack.io/owner"
)
View Source
const (
	// MachineID tag to store machine ID
	MachineID = "machine.metal-stack.io/id"
	// MachineName tag to store machine name
	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
	MachineProject = "machine.metal-stack.io/project"
	// MachineTenant tag to store the tenant the machine belongs to
	MachineTenant = "machine.metal-stack.io/tenant"
	// MachineNetworkPrimaryASN tag to store the primary BGP ASN the machine announces.
	MachineNetworkPrimaryASN = "machine.metal-stack.io/network.primary.asn"
	// MachineRack tag to store the rack that this machine is placed in.
	MachineRack = "machine.metal-stack.io/rack"
	// MachineChassis tag to store the machine chassis.
	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
	NetworkDefault = "network.metal-stack.io/default"
	// NetworkDefaultExternal indicates a network that can serve as a default for IP allocations
	NetworkDefaultExternal = "network.metal-stack.io/default-external"
	// NetworkPartitionStorage indicates a network that can serve as a storage network in a partition
	NetworkPartitionStorage = "network.metal-stack.io/partition-storage"
)

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) 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