Versions in this module Expand all Collapse all v1 v1.3.4 Apr 16, 2020 v1.0.0 May 17, 2020 Changes in this version + var ErrNoTransaction = errors.New("no transaction in context") + func CommitActive(ctx context.Context, key, name string, usage snapshots.Usage, ...) (string, error) + func GetInfo(ctx context.Context, key string) (string, snapshots.Info, snapshots.Usage, error) + func IDMap(ctx context.Context) (map[string]string, error) + func Remove(ctx context.Context, key string) (string, snapshots.Kind, error) + func UpdateInfo(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error) + func WalkInfo(ctx context.Context, fn snapshots.WalkFunc, fs ...string) error + type MetaStore struct + func NewMetaStore(dbfile string) (*MetaStore, error) + func (ms *MetaStore) Close() error + func (ms *MetaStore) TransactionContext(ctx context.Context, writable bool) (context.Context, Transactor, error) + type Snapshot struct + ID string + Kind snapshots.Kind + ParentIDs []string + func CreateSnapshot(ctx context.Context, kind snapshots.Kind, key, parent string, ...) (s Snapshot, err error) + func GetSnapshot(ctx context.Context, key string) (s Snapshot, err error) + type Transactor interface + Commit func() error + Rollback func() error