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

Method GetFile

private/bufpkg/bufmodule/module_read_bucket.go:793–799  ·  view source on GitHub ↗
(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

791}
792
793func (m *multiProtoFileModuleReadBucket[T, S]) GetFile(ctx context.Context, path string) (File, error) {
794 _, delegateIndex, err := m.getFileInfoAndDelegateIndex(ctx, "read", path)
795 if err != nil {
796 return nil, err
797 }
798 return m.delegates[delegateIndex].GetFile(ctx, path)
799}
800
801func (m *multiProtoFileModuleReadBucket[T, S]) StatFileInfo(ctx context.Context, path string) (FileInfo, error) {
802 fileInfo, _, err := m.getFileInfoAndDelegateIndex(ctx, "stat", path)

Callers

nothing calls this directly

Calls 2

GetFileMethod · 0.65

Tested by

no test coverage detected