Merge pull request #1583 from stevvooe/image-storage-validation

metadata: validation and testing of image store
This commit is contained in:
Stephen Day
2017-10-03 16:48:38 -07:00
committed by GitHub
3 changed files with 545 additions and 3 deletions

View File

@@ -16,9 +16,25 @@ import (
// Image provides the model for how containerd views container images.
type Image struct {
Name string
Labels map[string]string
Target ocispec.Descriptor
// Name of the image.
//
// To be pulled, it must be a reference compatible with resolvers.
//
// This field is required.
Name string
// Labels provide runtime decoration for the image record.
//
// There is no default behavior for how these labels are propagated. They
// only decorate the static metadata object.
//
// This field is optional.
Labels map[string]string
// Target describes the root content for this image. Typically, this is
// a manifest, index or manifest list.
Target ocispec.Descriptor
CreatedAt, UpdatedAt time.Time
}