Make Task, Container, Image interface types

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-05-25 11:05:58 -07:00
parent 1de25c09e3
commit 608e6daaa4
5 changed files with 61 additions and 32 deletions

View File

@@ -183,8 +183,9 @@ func WithHostNamespace(ns specs.LinuxNamespaceType) SpecOpts {
}
}
func WithImage(ctx context.Context, image *Image) SpecOpts {
func WithImage(ctx context.Context, i Image) SpecOpts {
return func(s *specs.Spec) error {
image := i.(*image)
store := image.client.content()
ic, err := image.i.Config(ctx, store)
if err != nil {