Skip to content

Commit f089cee

Browse files
committed
specs-go/v1: use digest type on descriptor
Signed-off-by: Stephen J Day <[email protected]>
1 parent 7ccc18a commit f089cee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specs-go/v1/descriptor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414

1515
package v1
1616

17+
import digest "github.com/opencontainers/go-digest"
18+
1719
// Descriptor describes the disposition of targeted content.
1820
type Descriptor struct {
1921
// MediaType contains the MIME type of the referenced object.
2022
MediaType string `json:"mediaType"`
2123

2224
// Digest is the digest of the targeted content.
23-
Digest string `json:"digest"`
25+
Digest digest.Digest `json:"digest"`
2426

2527
// Size specifies the size in bytes of the blob.
2628
Size int64 `json:"size"`

0 commit comments

Comments
 (0)