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