Documentation ¶
Overview ¶
Package meta provides access to META partition: key-value partition persisted across reboots.
Index ¶
- Constants
- type Meta
- func (meta *Meta) DeleteTag(ctx context.Context, t uint8) (bool, error)
- func (meta *Meta) Flush() error
- func (meta *Meta) ReadTag(t uint8) (val string, ok bool)
- func (meta *Meta) ReadTagBytes(t uint8) (val []byte, ok bool)
- func (meta *Meta) Reload(ctx context.Context) error
- func (meta *Meta) SetTag(ctx context.Context, t uint8, val string) (bool, error)
- func (meta *Meta) SetTagBytes(ctx context.Context, t uint8, val []byte) (bool, error)
- type Option
- type Options
Constants ¶
View Source
const ( // Upgrade is the upgrade tag. Upgrade = iota + 6 // StagedUpgradeImageRef stores image reference for staged upgrade. StagedUpgradeImageRef // StagedUpgradeInstallOptions stores JSON-serialized install.Options. StagedUpgradeInstallOptions // StateEncryptionConfig stores JSON-serialized v1alpha1.Encryption. StateEncryptionConfig // MetalNetworkPlatformConfig stores serialized NetworkPlatformConfig for the `metal` platform. MetalNetworkPlatformConfig // DownloadURLCode stores the value of the `${code}` variable in the download URL for talos.config= URL. DownloadURLCode // UserReserved1 is reserved for user-defined metadata. UserReserved1 // UserReserved2 is reserved for user-defined metadata. UserReserved2 // UserReserved3 is reserved for user-defined metadata. UserReserved3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta represents the META reader/writer.
Meta abstracts away all details about loading/storing the metadata providing an easy to use interface.
func (*Meta) ReadTagBytes ¶
ReadTagBytes reads a tag from the META.
type Option ¶
type Option func(*Options)
Option is a functional option.
func WithFixedPath ¶
WithFixedPath sets the fixed path to META partition.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
adv
Package adv provides common interfaces to access ADV data.
|
Package adv provides common interfaces to access ADV data. |
adv/syslinux
Package syslinux provides syslinux-compatible ADV data.
|
Package syslinux provides syslinux-compatible ADV data. |
adv/talos
Package talos implements modern ADV which supports large size for the values and tags.
|
Package talos implements modern ADV which supports large size for the values and tags. |
Click to show internal directories.
Click to hide internal directories.