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

Function v1ProtoToDigestType

private/bufpkg/bufmodule/bufmoduleapi/convert.go:131–137  ·  view source on GitHub ↗
(protoDigestType modulev1.DigestType)

Source from the content-addressed store, hash-verified

129}
130
131func v1ProtoToDigestType(protoDigestType modulev1.DigestType) (bufmodule.DigestType, error) {
132 digestType, ok := v1ProtoDigestTypeToDigestType[protoDigestType]
133 if !ok {
134 return 0, fmt.Errorf("unknown modulev1.DigestType: %v", protoDigestType)
135 }
136 return digestType, nil
137}
138
139func digestTypeToV1Beta1Proto(digestType bufmodule.DigestType) (modulev1beta1.DigestType, error) {
140 protoDigestType, ok := digestTypeToV1Beta1ProtoDigestType[digestType]

Callers 1

V1ProtoToDigestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…