Versions in this module Expand all Collapse all v0 v0.3.0 Sep 28, 2026 Changes in this version + const Ext + const FilePerm + const FormatVersion + const GlobalsDir + const TimeLayout + func CommandSlug(command string) string + func Component(s string) string + func FileName(t time.Time, command string) string + func ParseFileName(name string) (time.Time, string, bool) + type Entry struct + Bytes int64 + Collection string + Command string + Global string + ID string + Path string + Profile string + Time time.Time + type Filter struct + Before time.Time + Collection string + Command string + Global string + ID string + Profile string + Since time.Time + type Record struct + BaseURL string + CLIVersion string + Collection string + Command string + Doc map[string]any + Draft bool + FallbackLocale string + Global string + ID any + Locale string + PayBackup int + Profile string + PublishedDoc map[string]any + RedactedPaths []string + RequestID string + Time time.Time + Trash bool + func Load(path string) (*Record, error) + func Parse(data []byte, path string) (*Record, error) + func (r *Record) IDString() string + func (r *Record) Kind() string + func (r *Record) Slug() string + type Ref struct + Collection string + Global string + ID string + Profile string + type Store struct + Root string + func New(dir string) *Store + func (s *Store) Dir(ref Ref) string + func (s *Store) List(f Filter) ([]Entry, error) + func (s *Store) Plan(ref Ref, command string, t time.Time) string + func (s *Store) ProfileDir(profile string) string + func (s *Store) Prune(f Filter, dryRun bool) ([]Entry, error) + func (s *Store) Writable(profile string) error + func (s *Store) Write(rec *Record) (string, error)