Documentation ¶
Index ¶
- func GetSnapshot(ctx context.Context, ms *storage.MetaStore, key string) (*storage.Snapshot, error)
- func GetSnapshotInfo(ctx context.Context, ms *storage.MetaStore, key string) (string, snapshots.Info, snapshots.Usage, error)
- func IterateParentSnapshots(ctx context.Context, ms *storage.MetaStore, key string, fn WalkFunc) (string, snapshots.Info, error)
- func UpdateSnapshotInfo(ctx context.Context, ms *storage.MetaStore, info snapshots.Info, ...) (snapshots.Info, error)
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSnapshot ¶
func GetSnapshotInfo ¶
func IterateParentSnapshots ¶ added in v0.4.0
func IterateParentSnapshots(ctx context.Context, ms *storage.MetaStore, key string, fn WalkFunc) (string, snapshots.Info, error)
Iterate all the parents of a snapshot specified by `key` Stop the iteration once callback `fn` is invoked successfully and return current iterated snapshot
Types ¶
Click to show internal directories.
Click to hide internal directories.