bufmodulestorage

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key added in v0.25.0

type Key []string

Key is a list of strings used to uniquely identify a module within the Store. Each element of the key must be a valid path component.

type Store added in v0.25.0

type Store interface {
	Get(ctx context.Context, moduleKey Key) (bufmodule.Module, error)
	Put(ctx context.Context, moduleKey Key, module bufmodule.Module) error
	Delete(ctx context.Context, moduleKey Key) error
	AllKeys(ctx context.Context) ([]Key, error)
}

Store is the interface implemented by the module store.

func NewStore added in v0.25.0

func NewStore(readWriteBucket storage.ReadWriteBucket) Store

NewStore creates a new module store backed by the readWriteBucket.

Jump to

Keyboard shortcuts

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