Versions in this module Expand all Collapse all v0 v0.0.7 Oct 27, 2026 v0.0.6 Oct 16, 2026 Changes in this version + const CheckpointKDFIterations + const Credential + const EndpointCurrent + const EndpointPrevious + const EnvCredentialsDirectory + const EnvKey + const EnvKeyFile + const EnvPrevious + const EnvPreviousFile + const PreviousCredential + var ErrConflict = errors.New("rootkey: sources disagree") + var ErrNoKey = errors.New("rootkey: no key to derive from") + var ErrPreviousAlone = errors.New("rootkey: a previous key without a current one") + var ErrRefused = errors.New("rootkey: key file refused") + var ErrSameKey = errors.New("rootkey: the previous key is the current key") + var ErrUnreadable = errors.New("rootkey: key file unreadable") + func CacheID(purpose string, parts ...string) string + func Current() (string, error) + func DeriveCheckpointKey(value string, iterations int) ([]byte, string, error) + func Fingerprint(value string) (string, error) + func InsideCloopDir(path string) bool + func Pin(r Roots) (unpin func()) + func Pinned() bool + type Root struct + Also []Source + Path string + Source Source + Value string + Variable string + func (r Root) Describe() string + func (r Root) Set() bool + type Roots struct + Current Root + Previous Root + func Resolve() (Roots, error) + func (r Roots) Changing() bool + func (r Roots) Fingerprints() (current, previous string, err error) + func (r Roots) Values() []string + type Source string + const SourceCredential + const SourceEnvironment + const SourceFile