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

Struct digest

private/bufpkg/bufplugin/digest.go:185–191  ·  view source on GitHub ↗

*** PRIVATE ***

Source from the content-addressed store, hash-verified

183/// *** PRIVATE ***
184
185type digest struct {
186 digestType DigestType
187 casDigest cas.Digest
188 // Cache as we call String pretty often.
189 // We could do this lazily but not worth it.
190 stringValue string
191}
192
193// validation should occur outside of this function.
194func newDigest(digestType DigestType, casDigest cas.Digest) *digest {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected