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

Function GetLicenseFile

private/bufpkg/bufmodule/module_read_bucket.go:224–226  ·  view source on GitHub ↗

GetLicenseFile gets the license File for the Module, if it exists. Returns an error with fs.ErrNotExist if the license File does not exist.

(ctx context.Context, moduleReadBucket ModuleReadBucket)

Source from the content-addressed store, hash-verified

222//
223// Returns an error with fs.ErrNotExist if the license File does not exist.
224func GetLicenseFile(ctx context.Context, moduleReadBucket ModuleReadBucket) (File, error) {
225 return moduleReadBucket.GetFile(ctx, licenseFilePath)
226}
227
228// GetDocStorageReadBucket gets a storage.ReadBucket that just contains the documentation file(s).
229//

Callers 1

runFunction · 0.92

Calls 1

GetFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…