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

Struct identityImageFileMetadataResolver

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

identityImageFileMetadataResolver is an [imageFileMetadataResolver] that returns identity values: external path equals path, and no module metadata. Used by [BuildImageFromOpener] where the caller owns the file contents directly.

Source from the content-addressed store, hash-verified

207// identity values: external path equals path, and no module metadata.
208// Used by [BuildImageFromOpener] where the caller owns the file contents directly.
209type identityImageFileMetadataResolver struct{}
210
211func (identityImageFileMetadataResolver) ExternalPath(path string) string { return path }
212func (identityImageFileMetadataResolver) LocalPath(_ string) string { return "" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected