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

Method CommitID

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

CommitID returns the BSR ID of the Commit of the Module that this ImageFile came from. if the ImageFile came from a Module (as opposed to a serialized Protobuf message), and if the CommitID was known.. May be empty, that is CommitID() == uuid.Nil may be true. Callers should not rely on this value b

()

Source from the content-addressed store, hash-verified

61 // May be empty, that is CommitID() == uuid.Nil may be true. Callers should not rely on this
62 // value being present. If FullName is nil, this will always be empty.
63 CommitID() uuid.UUID
64 // Imports returns the imports for this ImageFile.
65 Imports() ([]string, error)
66 // IsImport returns true if this file is an import.

Callers 9

CommitIDMethod · 0.65
newImageFunction · 0.65
ImageFileWithIsImportFunction · 0.65
CloneImageFileFunction · 0.65
OpenMethod · 0.65
filterImageFileFunction · 0.65
normalizeImageFilesFunction · 0.65

Implementers 3

imageFileprivate/bufpkg/bufimage/image_file.go
moduleImageFileInfoprivate/bufpkg/bufimage/module_image_f
wellKnownTypeImageFileInfoprivate/bufpkg/bufimage/well_known_typ

Calls

no outgoing calls

Tested by

no test coverage detected