nodeidentity

package
v0.0.0-test.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package nodeidentity initializes and persists the stable node UUID used by enrollment, inventory, attestation, and metrics workflows. The persisted node UUID is stored in the legacy machine ID metadata key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNodeUUID

func EnsureNodeUUID(ctx context.Context, state State) (string, error)

EnsureNodeUUID returns the persisted node UUID, or initializes and persists it from DMI sysfs with a random UUID fallback.

Types

type State

type State interface {
	GetOrCreateNodeUUID(ctx context.Context, create func() (string, error)) (value string, created bool, err error)
}

State is the local storage contract needed to persist node identity.

Jump to

Keyboard shortcuts

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