getStorageMatcher gets the storage.Matcher that will filter the storage.ReadBucket down to specifically the files that are relevant to a module.
(ctx context.Context, bucket storage.ReadBucket)
| 68 | // getStorageMatcher gets the storage.Matcher that will filter the storage.ReadBucket down to specifically |
| 69 | // the files that are relevant to a module. |
| 70 | func getStorageMatcher(ctx context.Context, bucket storage.ReadBucket) storage.Matcher { |
| 71 | return storage.MatchOr( |
| 72 | storage.MatchPathExt(".proto"), |
| 73 | storage.MatchPathEqual(licenseFilePath), |
| 74 | storage.MatchPathEqual(getDocFilePathForStorageReadBucket(ctx, bucket)), |
| 75 | ) |
| 76 | } |
| 77 | |
| 78 | // getSyncOnceValuesGetBucketWithStorageMatcherApplied wraps the getBucket function with sync.OnceValues |
| 79 | // and getStorageMatcher applied. |
no test coverage detected
searching dependent graphs…