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

Method GetFile

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

GetFile gets the File within the Module as specified by the path. Returns an error with fs.ErrNotExist if the path is not part of the Module.

(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

47 //
48 // Returns an error with fs.ErrNotExist if the path is not part of the Module.
49 GetFile(ctx context.Context, path string) (File, error)
50 // StatFileInfo gets the FileInfo for the File within the Module as specified by the path.
51 //
52 // Returns an error with fs.ErrNotExist if the path is not part of the Module.

Callers 6

GetDocFileFunction · 0.65
GetLicenseFileFunction · 0.65
GetFileMethod · 0.65
GetFileMethod · 0.65
GetFileMethod · 0.65
GetMethod · 0.65

Implementers 3

moduleReadBucketprivate/bufpkg/bufmodule/module_read_b
targetedModuleReadBucketprivate/bufpkg/bufmodule/module_read_b
filteredModuleReadBucketprivate/bufpkg/bufmodule/module_read_b

Calls

no outgoing calls

Tested by

no test coverage detected