meta

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package meta keeps Talos meta partition utils.

Package meta keeps Talos meta partition utils.

Index

Constants

View Source
const LabelsMeta = 12

LabelsMeta is github.com/siderolabs/talos/internal/pkg/meta.UserReserved1. Omni stores initial machine labels under that key. tsgen:LabelsMeta

View Source
const MetalNetworkPlatformConfig = 10

MetalNetworkPlatformConfig is github.com/siderolabs/talos/internal/pkg/meta.MetalNetworkPlatformConfig. tsgen:MetalNetworkPlatformConfig

View Source
const StateEncryptionConfig = 9

StateEncryptionConfig is github.com/siderolabs/talos/internal/pkg/meta.StateEncryptionConfig.

View Source
const Upgrade = 6

Upgrade is github.com/siderolabs/talos/internal/pkg/meta.Upgrade.

View Source
const UserReserved2 = 13

UserReserved2 is github.com/siderolabs/talos/internal/pkg/meta.UserReserved2.

View Source
const UserReserved3 = 14

UserReserved3 is github.com/siderolabs/talos/internal/pkg/meta.UserReserved3.

Variables

This section is empty.

Functions

func CanSetMetaKey

func CanSetMetaKey(key int) bool

CanSetMetaKey checks if the meta key can be set using Omni/Image Factory. To avoid messing up things which are internal to Talos.

Types

type ImageLabels

type ImageLabels struct {
	Labels       map[string]string `yaml:"machineLabels"`
	LegacyLabels map[string]string `yaml:"machineInitialLabels,omitempty"`
}

ImageLabels describes structure that is stored in the Talos metadata and keeps machine labels that are initially assigned to the machine when it connects to Omni.

func ParseLabels

func ParseLabels(data []byte) (*ImageLabels, error)

ParseLabels reads label from the encoded metadata value.

func (ImageLabels) Encode

func (l ImageLabels) Encode() ([]byte, error)

Encode converts labels to the serialized value to be stored in the meta partition.

Jump to

Keyboard shortcuts

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