HashName returns the lowercase hash function name of the reference. It panics if r is zero.
()
| 123 | // HashName returns the lowercase hash function name of the reference. |
| 124 | // It panics if r is zero. |
| 125 | func (r Ref) HashName() string { |
| 126 | if r.digest == nil { |
| 127 | panic("HashName called on invalid Ref") |
| 128 | } |
| 129 | return r.digest.digestName() |
| 130 | } |
| 131 | |
| 132 | // Digest returns the lower hex digest of the blobref, without |
| 133 | // the e.g. "sha224-" prefix. It panics if r is zero. |
no test coverage detected