scoped

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFeatures

func WithFeatures(dstore ds.Datastore, features []ds.Feature) ds.Datastore

WithFeatures returns a wrapped datastore that implements the intersection of the given datastore's features with the provided features.

func Wrap

func Wrap(source ds.Datastore, target ds.Datastore) ds.Datastore

Wrap returns a datastore based on the source, whose concrete type is scoped down to only the features supported by the target.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL