Skip to content

Commit 9bce8be

Browse files
committed
digest: remove deprecated interfaces
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 <[email protected]>
1 parent 6843c1b commit 9bce8be

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

digest.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import (
88
"strings"
99
)
1010

11-
const (
12-
// DigestSha256EmptyTar is the canonical sha256 digest of empty data
13-
DigestSha256EmptyTar = "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
14-
)
15-
1611
// Digest allows simple protection of hex formatted digest strings, prefixed
1712
// by their algorithm. Strings of type Digest have some guarantee of being in
1813
// the correct format and it provides quick access to the components of a
@@ -68,11 +63,6 @@ func Parse(s string) (Digest, error) {
6863
return d, d.Validate()
6964
}
7065

71-
// ParseDigest is deprecated. Use Parse.
72-
func ParseDigest(s string) (Digest, error) {
73-
return Parse(s)
74-
}
75-
7666
// FromReader returns the most valid digest for the underlying content using
7767
// the canonical digest algorithm.
7868
func FromReader(rd io.Reader) (Digest, error) {

verifiers.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ type Verifier interface {
1717
Verified() bool
1818
}
1919

20-
// NewDigestVerifier is deprecated. Please use Digest.Verifier.
21-
func NewDigestVerifier(d Digest) (Verifier, error) {
22-
return d.Verifier(), nil
23-
}
24-
2520
type hashVerifier struct {
2621
digest Digest
2722
hash hash.Hash

0 commit comments

Comments
 (0)