MCPcopy Create free account
hub / github.com/bufbuild/buf / moduleReadBucket

Struct moduleReadBucket

private/bufpkg/bufmodule/module_read_bucket.go:271–285  ·  view source on GitHub ↗

*** PRIVATE *** moduleReadBucket

Source from the content-addressed store, hash-verified

269// moduleReadBucket
270
271type moduleReadBucket struct {
272 getBucket func() (storage.ReadBucket, error)
273 module Module
274 // We have to store a deterministic ordering of targetPaths so that Walk
275 // has the same iteration order every time. We could have a different iteration order,
276 // as storage.ReadBucket.Walk doesn't guarantee any iteration order, but that seems wonky.
277 targetPaths []string
278 targetPathMap map[string]struct{}
279 targetExcludePathMap map[string]struct{}
280 protoFileTargetPath string
281 includePackageFiles bool
282
283 pathToFileInfoCache cache.Cache[string, FileInfo]
284 pathToFastscanResultCache cache.Cache[string, fastscan.Result]
285}
286
287// module cannot be assumed to be functional yet.
288// Do not call any functions on module.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected