Uses new digest package instead of string digests

Also drops extraneous test package and uses testutil instead
This commit is contained in:
Brian Bland 2014-11-19 18:52:09 -08:00
parent 1336ced030
commit 64c8bd29cc
6 changed files with 54 additions and 48 deletions

View file

@ -3,6 +3,8 @@ package registry
import (
"fmt"
"strings"
"github.com/docker/docker-registry/digest"
)
// ErrorCode represents the error type. The errors are serialized via strings
@ -228,7 +230,7 @@ func (e *ImageManifestNotFoundError) Error() string {
// layer that does not exist in the registry.
type BlobNotFoundError struct {
Name string
Digest string
Digest digest.Digest
}
func (e *BlobNotFoundError) Error() string {