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

Function imageToProtoFileDescriptors

private/bufpkg/bufcheck/util.go:23–28  ·  view source on GitHub ↗
(image bufimage.Image)

Source from the content-addressed store, hash-verified

21)
22
23func imageToProtoFileDescriptors(image bufimage.Image) []*descriptorv1.FileDescriptor {
24 if image == nil {
25 return nil
26 }
27 return xslices.Map(image.Files(), imageToProtoFileDescriptor)
28}
29
30func imageToProtoFileDescriptor(imageFile bufimage.ImageFile) *descriptorv1.FileDescriptor {
31 return &descriptorv1.FileDescriptor{

Callers 2

lintMethod · 0.85
breakingMethod · 0.85

Calls 1

FilesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…