buf: github.com/bufbuild/buf/internal/buf/bufcore/bufmodule/bufmodulestorage Index | Files

package bufmodulestorage

import "github.com/bufbuild/buf/internal/buf/bufcore/bufmodule/bufmodulestorage"

Index

Package Files

bufmodulestorage.go store.go

type Key Uses

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 Uses

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 Uses

func NewStore(readWriteBucket storage.ReadWriteBucket) Store

NewStore creates a new module store backed by the readWriteBucket.

Package bufmodulestorage imports 10 packages (graph) and is imported by 1 packages. Updated 2020-11-28. Refresh now. Tools for package owners.