Skip to content

Commit

Permalink
digest: remove deprecated interfaces
Browse files Browse the repository at this point in the history
These exported items are no longer supported as of the splitting out of
this package. They will be maintained elsewhere for packages that are
currently using this as `distribution/digest`.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
  • Loading branch information
Stephen J Day committed Dec 16, 2016
1 parent 6843c1b commit 9bce8be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import (
"strings"
)

const (
// DigestSha256EmptyTar is the canonical sha256 digest of empty data
DigestSha256EmptyTar = "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
)

// Digest allows simple protection of hex formatted digest strings, prefixed
// by their algorithm. Strings of type Digest have some guarantee of being in
// the correct format and it provides quick access to the components of a
Expand Down Expand Up @@ -68,11 +63,6 @@ func Parse(s string) (Digest, error) {
return d, d.Validate()
}

// ParseDigest is deprecated. Use Parse.
func ParseDigest(s string) (Digest, error) {
return Parse(s)
}

// FromReader returns the most valid digest for the underlying content using
// the canonical digest algorithm.
func FromReader(rd io.Reader) (Digest, error) {
Expand Down
5 changes: 0 additions & 5 deletions verifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ type Verifier interface {
Verified() bool
}

// NewDigestVerifier is deprecated. Please use Digest.Verifier.
func NewDigestVerifier(d Digest) (Verifier, error) {
return d.Verifier(), nil
}

type hashVerifier struct {
digest Digest
hash hash.Hash
Expand Down

0 comments on commit 9bce8be

Please sign in to comment.