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

Struct digest

private/bufpkg/bufmodule/digest.go:198–204  ·  view source on GitHub ↗

*** PRIVATE ***

Source from the content-addressed store, hash-verified

196/// *** PRIVATE ***
197
198type digest struct {
199 digestType DigestType
200 casDigest cas.Digest
201 // Cache as we call String pretty often.
202 // We could do this lazily but not worth it.
203 stringValue string
204}
205
206// validation should occur outside of this function.
207func newDigest(digestType DigestType, casDigest cas.Digest) *digest {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected