package scoped
import "github.com/ipfs/go-datastore/scoped"
Index ¶
- func WithFeatures(dstore ds.Datastore, features []ds.Feature) ds.Datastore
- func Wrap(source ds.Datastore, target ds.Datastore) ds.Datastore
Functions ¶
func WithFeatures ¶
WithFeatures returns a wrapped datastore that implements the intersection of the given datastore's features with the provided features.
func Wrap ¶
Wrap returns a datastore based on the source, whose concrete type is scoped down to only the features supported by the target.
Source Files ¶
- Version
- v0.8.2 (latest)
- Published
- Mar 4, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 month ago –
Tools for package owners.