sys

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package sys tracks one-time bootstrap state.

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyInitialized = errors.New("system already initialized")

ErrAlreadyInitialized indicates bootstrap was already performed.

Functions

func Initialized

func Initialized() bool

Initialized reports whether bootstrap completed.

func MarkInitialized

func MarkInitialized(fingerprint string) error

MarkInitialized records successful bootstrap.

func MasterKeyFingerprint

func MasterKeyFingerprint() string

MasterKeyFingerprint returns the fingerprint set at init.

func ResetForTest

func ResetForTest()

ResetForTest clears init state (unit tests only).

func SetStatePath

func SetStatePath(path string)

SetStatePath enables durable init marker (W50-05). Call before MarkInitialized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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