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

Function getDocFilePathForStorageReadBucket

private/bufpkg/bufmodule/paths.go:50–57  ·  view source on GitHub ↗
(ctx context.Context, bucket storage.ReadBucket)

Source from the content-addressed store, hash-verified

48}
49
50func getDocFilePathForStorageReadBucket(ctx context.Context, bucket storage.ReadBucket) string {
51 for _, docFilePath := range orderedDocFilePaths {
52 if _, err := bucket.Stat(ctx, docFilePath); err == nil {
53 return docFilePath
54 }
55 }
56 return ""
57}
58
59func getDocFilePathForModuleReadBucket(ctx context.Context, bucket ModuleReadBucket) string {
60 for _, docFilePath := range orderedDocFilePaths {

Callers 2

GetDocStorageReadBucketFunction · 0.85
getStorageMatcherFunction · 0.85

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…