Versions in this module Expand all Collapse all v0 v0.44.0 Dec 3, 2026 v0.43.0 Nov 29, 2026 Changes in this version + const FileName + const MarkerName + const Version + var ErrForeign = errors.New("statestore: stored state belongs to another node") + var ErrInterrupted = errors.New("statestore: the previous restore did not complete") + var ErrNoState = errors.New("statestore: no stored state") + type File struct + Area *api.NodeStateArea + Bridge *api.BridgeSnapshot + EdgePSKs []wireguard.SealedEdgePSK + FailureDetection json.RawMessage + MaxAgeSeconds int64 + NodeID string + Peers []api.SnapshotPeer + Policy *api.PolicySnapshot + SavedAt time.Time + Secrets *[]api.NodeStateSecret + SharedSubnets []api.NodeStateSharedSubnet + Version int + type Store struct + func New(dataDir, nodeID string, logger *slog.Logger) *Store + func (s *Store) BeginRestore() error + func (s *Store) EndRestore() error + func (s *Store) Load() (*File, error) + func (s *Store) Observer(sealed func() []wireguard.SealedEdgePSK, maxAgeSeconds func() int64) reconcile.DispatchHandler