bufmodulecache

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModuleReader

func NewModuleReader(
	logger *zap.Logger,
	verbosePrinter verbose.Printer,
	fileLocker filelock.Locker,
	dataReadWriteBucket storage.ReadWriteBucket,
	sumReadWriteBucket storage.ReadWriteBucket,
	delegate bufmodule.ModuleReader,
	repositoryClientFactory RepositoryServiceClientFactory,
	options ...ModuleReaderOption,
) bufmodule.ModuleReader

NewModuleReader returns a new ModuleReader that uses cache as a caching layer, and delegate as the source of truth.

Types

type ModuleReaderOption

type ModuleReaderOption func(*moduleReaderOptions)

ModuleReaderOption is an option for creating a ModuleReader.

func ModuleReaderWithExternalPaths added in v1.8.0

func ModuleReaderWithExternalPaths() ModuleReaderOption

ModuleReaderWithExternalPaths is used to preserve the external paths to the files resolved from the module cache.

type RepositoryServiceClientFactory added in v1.10.0

type RepositoryServiceClientFactory func(address string) registryv1alpha1connect.RepositoryServiceClient

func NewRepositoryServiceClientFactory added in v1.10.0

func NewRepositoryServiceClientFactory(clientConfig *connectclient.Config) RepositoryServiceClientFactory

Jump to

Keyboard shortcuts

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