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