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

Method Files

private/bufpkg/bufimage/bufimage.go:237–237  ·  view source on GitHub ↗

Files are the files that comprise the image. This contains all files, including imports if available. The returned files are in correct DAG order. All files that have the same FullName will also have the same commit, or no commit. This is enforced at construction time.

()

Source from the content-addressed store, hash-verified

235 // All files that have the same FullName will also have the same commit, or no commit.
236 // This is enforced at construction time.
237 Files() []ImageFile
238 // GetFile gets the file for the root relative file path.
239 //
240 // If the file does not exist, nil is returned.

Callers 15

TestBasicFunction · 0.95
runFunction · 0.65
TestNewFilesFunction · 0.65
TestCloneImageFunction · 0.65
CloneImageFunction · 0.65

Implementers 1

imageprivate/bufpkg/bufimage/image.go

Calls

no outgoing calls

Tested by 15

TestBasicFunction · 0.76
TestNewFilesFunction · 0.52
TestCloneImageFunction · 0.52
TestGoogleapisFunction · 0.52
testGetImageFilePathsFunction · 0.52
testGetImageImportPathsFunction · 0.52
runFilterImageFunction · 0.52
imageIsDependencyOrderedFunction · 0.52