Versions in this module Expand all Collapse all v0 v0.9.0 Oct 6, 2026 Changes in this version + const StateRoot + var ErrCacheCorrupt = errors.New("remote config cache corrupt") + func CanonicalOverlay(raw json.RawMessage) (json.RawMessage, error) + func DefaultDir(configPath string) (string, error) + func WriteFileAtomic(path string, data []byte, perm os.FileMode) error + type Cache struct + Applied *OverlayRecord + Checksum string + Fetched *OverlayRecord + Identity Identity + Rejected *RejectedRecord + Version int + func (c *Cache) IfNoneMatch() string + type Identity struct + APIURL string + ClientID string + type OverlayRecord struct + ETag string + FetchedAt time.Time + Overlay json.RawMessage + Revision int64 + type RejectedRecord struct + BaseFingerprint string + ETag string + Error string + OverlaySHA256 string + Reason string + Revision int64 + Status string + Unsafe []agentconfig.Change + type Store struct + func Open(dir string, logger hclog.Logger) *Store + func (s *Store) CachePath() string + func (s *Store) Dir() string + func (s *Store) InstanceID(override string) (uuid.UUID, bool) + func (s *Store) LoadCache(id Identity) (*Cache, error) + func (s *Store) SaveCache(c *Cache) error + func (s *Store) Writable() bool