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

Method GetRef

private/buf/buffetch/buffetch.go:238–238  ·  view source on GitHub ↗

GetRef gets the reference for the message file, source bucket, or module. TODO FUTURE: should this be renamed to GetRefForString?

(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

236 // GetRef gets the reference for the message file, source bucket, or module.
237 // TODO FUTURE: should this be renamed to GetRefForString?
238 GetRef(ctx context.Context, value string) (Ref, error)
239 // GetRefForInputConfig gets the reference for the message file, source bucket, or module.
240 GetRefForInputConfig(ctx context.Context, inputConfig bufconfig.InputConfig) (Ref, error)
241}

Calls

no outgoing calls

Tested by

no test coverage detected