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 { type Image interface {
Layers(layers []string) error // var args Layers(layers ...string) error // configure download directory? Call it DownloadLayers?
Manifest(version string) (ImageManifest, error) Manifest(version string) (ImageManifest, error)
RawManifest(version string) ([]byte, error) RawManifest(version string) ([]byte, error)
DockerTar() ([]byte, error) // ??? DockerTar() ([]byte, error) // ??? also, configure output directory
} }
type ImageManifest struct { type ImageManifest struct {
@ -27,10 +27,10 @@ type ImageManifest struct {
RepoTags []string RepoTags []string
Comment string Comment string
Created string Created string
ContainerConfig *containerTypes.Config // remove docker/docker code ContainerConfig *containerTypes.Config // remove docker/docker code, this isn't needed
DockerVersion string DockerVersion string
Author 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 Architecture string
Os string Os string
Layers []string // ??? Layers []string // ???