From 6b46159ee83d56076cd1a0d8c64de0af336dd0bd Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Thu, 19 Jan 2017 14:24:11 -0800 Subject: [PATCH] specs-go/v1: use digest type on descriptor Signed-off-by: Stephen J Day --- specs-go/v1/descriptor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs-go/v1/descriptor.go b/specs-go/v1/descriptor.go index 83dde9666..563f8188e 100644 --- a/specs-go/v1/descriptor.go +++ b/specs-go/v1/descriptor.go @@ -14,13 +14,15 @@ package v1 +import digest "github.com/opencontainers/go-digest" + // Descriptor describes the disposition of targeted content. type Descriptor struct { // MediaType contains the MIME type of the referenced object. MediaType string `json:"mediaType"` // Digest is the digest of the targeted content. - Digest string `json:"digest"` + Digest digest.Digest `json:"digest"` // Size specifies the size in bytes of the blob. Size int64 `json:"size"`