refactor adding enum for storage types

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
Mike Brown 2017-07-20 12:48:46 -05:00
parent 9e3f78b8c8
commit 6bae7ca597
6 changed files with 41 additions and 32 deletions

View file

@ -111,6 +111,7 @@ func TestManifestList(t *testing.T) {
}
}
// TODO (mikebrow): add annotations on the index and individual manifests
var expectedOCIImageIndexSerialization = []byte(`{
"schemaVersion": 2,
"mediaType": "application/vnd.oci.image.index.v1+json",

View file

@ -10,6 +10,7 @@ import (
"github.com/opencontainers/image-spec/specs-go/v1"
)
// TODO (not assigned): consider making mockBlobService common for ocischema, schema2, and schema1
type mockBlobService struct {
descriptors map[digest.Digest]distribution.Descriptor
}

View file

@ -57,7 +57,6 @@ func (m Manifest) References() []distribution.Descriptor {
references := make([]distribution.Descriptor, 0, 1+len(m.Layers))
references = append(references, m.Config)
references = append(references, m.Layers...)
// TODO: (mikebrow/stevvooe) should we return annotations as references
return references
}

View file

@ -10,6 +10,7 @@ import (
"github.com/opencontainers/image-spec/specs-go/v1"
)
// TODO (mikebrow): add annotations to the test
var expectedManifestSerialization = []byte(`{
"schemaVersion": 2,
"mediaType": "application/vnd.oci.image.manifest.v1+json",