Proposed fix for image content store

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2017-11-22 17:36:24 -05:00
parent a21a19a658
commit f6e877e8be
4 changed files with 10 additions and 10 deletions

View File

@@ -11,11 +11,12 @@ import (
// Client interface used by SpecOpt
type Client interface {
SnapshotService(snapshotterName string) snapshot.Snapshotter
ContentStore() content.Store
}
// Image interface used by some SpecOpt to query image configuration
type Image interface {
// Config descriptor for the image.
Config(ctx context.Context) (ocispec.Descriptor, error)
// ContentStore provides a content store which contains image blob data
ContentStore() content.Store
}