From 3943c4165c95043be655d5966789ef198c373d39 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Fri, 9 Oct 2015 16:01:31 -0700 Subject: [PATCH] Make Named,Tagged, and Digested implement Reference Signed-off-by: Derek McGowan (github: dmcgowan) --- reference/reference.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reference/reference.go b/reference/reference.go index f1d18035..01e7fca7 100644 --- a/reference/reference.go +++ b/reference/reference.go @@ -98,26 +98,28 @@ func (f *Field) UnmarshalText(p []byte) error { // Named is an object with a full name type Named interface { + Reference Name() string } // Tagged is an object which has a tag type Tagged interface { + Reference Tag() string } // Digested is an object which has a digest // in which it can be referenced by type Digested interface { + Reference Digest() digest.Digest } // Canonical reference is an object with a fully unique // name including a name with hostname and digest type Canonical interface { - Reference Named - Digested + Digest() digest.Digest } // SplitHostname splits a named reference into a