bufmodulecache

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 14 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,
	repositoryServiceProvider registryv1alpha1apiclient.RepositoryServiceProvider,
	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.

Jump to

Keyboard shortcuts

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