Documentation ¶
Index ¶
- type Comparer
- type DBExciseSpanFn
- type FilterPolicy
- type Merger
- type OpenOption
- type Option
- func Comparers(cmps ...*Comparer) Option
- func DefaultComparer(c *Comparer) Option
- func FS(fs vfs.FS) Option
- func Filters(filters ...FilterPolicy) Option
- func KeySchema(name string) Option
- func KeySchemas(schemas ...*colblk.KeySchema) Option
- func Mergers(mergers ...*Merger) Option
- func OpenErrEnhancer(fn func(error) error) Option
- func OpenOptions(openOptions ...OpenOption) Option
- func WithDBExciseSpanFn(fn DBExciseSpanFn) Option
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBExciseSpanFn ¶
type DBExciseSpanFn func() (pebble.KeyRange, error)
DBExciseSpanFn is a function used to obtain the excise span for the `db excise` command. This allows a higher-level wrapper to add its own way of specifying the span. Returns an invalid KeyRange if none was specified (in which case the default --start/end flags are used).
type FilterPolicy ¶
type FilterPolicy = base.FilterPolicy
FilterPolicy exports the base.FilterPolicy type.
type OpenOption ¶
type OpenOption interface {
Apply(dirname string, opts *pebble.Options)
}
OpenOption is an option that may be applied to the *pebble.Options before calling pebble.Open.
type Option ¶
type Option func(*T)
A Option configures the Pebble introspection tool.
func Comparers ¶
Comparers may be passed to New to register comparers for use by the introspesction tools.
func DefaultComparer ¶
DefaultComparer registers a comparer for use by the introspection tools and sets it as the default.
func Filters ¶
func Filters(filters ...FilterPolicy) Option
Filters may be passed to New to register filter policies for use by the introspection tools.
func KeySchemas ¶
KeySchemas may be passed to New to register key schemas for use by the introspection tools.
func OpenErrEnhancer ¶
OpenErrEnhancer sets a function that enhances an error encountered when the tool opens a database; used to provide the user additional context, for example that a corruption error might be caused by encryption at rest not being configured properly.
func OpenOptions ¶
func OpenOptions(openOptions ...OpenOption) Option
OpenOptions may be passed to New to provide a set of OpenOptions that should be invoked to configure the *pebble.Options before opening a database.
func WithDBExciseSpanFn ¶
func WithDBExciseSpanFn(fn DBExciseSpanFn) Option
WithDBExciseSpanFn specifies a function that returns the excise span for the `db excise` command.
type T ¶
T is the container for all of the introspection tools.
func (*T) ConfigureSharedStorage ¶
func (t *T) ConfigureSharedStorage( s remote.StorageFactory, createOnShared remote.CreateOnSharedStrategy, createOnSharedLocator remote.Locator, )
ConfigureSharedStorage updates the shared storage options.