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.
Click to show internal directories.
Click to hide internal directories.