(protoDigestType modulev1.DigestType)
| 129 | } |
| 130 | |
| 131 | func 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 | |
| 139 | func digestTypeToV1Beta1Proto(digestType bufmodule.DigestType) (modulev1beta1.DigestType, error) { |
| 140 | protoDigestType, ok := digestTypeToV1Beta1ProtoDigestType[digestType] |
no outgoing calls
no test coverage detected
searching dependent graphs…