fix to interfaces

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-03-16 13:23:08 +01:00
parent 0440473c63
commit 5d740b4611

View File

@ -15,10 +15,10 @@ type Registry interface {
}
type Image interface {
Layers(layers []string) error // var args
Layers(layers ...string) error // configure download directory? Call it DownloadLayers?
Manifest(version string) (ImageManifest, error)
RawManifest(version string) ([]byte, error)
DockerTar() ([]byte, error) // ???
DockerTar() ([]byte, error) // ??? also, configure output directory
}
type ImageManifest struct {
@ -27,10 +27,10 @@ type ImageManifest struct {
RepoTags []string
Comment string
Created string
ContainerConfig *containerTypes.Config // remove docker/docker code
ContainerConfig *containerTypes.Config // remove docker/docker code, this isn't needed
DockerVersion string
Author string
Config *containerTypes.Config // remove docker/docker code
Config *containerTypes.Config // remove docker/docker code, needs just Labels here for now
Architecture string
Os string
Layers []string // ???