mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types/build: move build options to client and backend
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/moby/moby/api/types/build"
|
||||
containertypes "github.com/moby/moby/api/types/container"
|
||||
"github.com/moby/moby/api/types/mount"
|
||||
"github.com/moby/moby/api/types/network"
|
||||
@@ -320,13 +319,11 @@ func setupTestImage(t *testing.T, ctx context.Context, apiClient client.APIClien
|
||||
)
|
||||
defer source.Close()
|
||||
|
||||
resp, err := apiClient.ImageBuild(ctx,
|
||||
source.AsTarReader(t),
|
||||
build.ImageBuildOptions{
|
||||
Remove: false,
|
||||
ForceRemove: false,
|
||||
Tags: []string{imgName},
|
||||
})
|
||||
resp, err := apiClient.ImageBuild(ctx, source.AsTarReader(t), client.ImageBuildOptions{
|
||||
Remove: false,
|
||||
ForceRemove: false,
|
||||
Tags: []string{imgName},
|
||||
})
|
||||
assert.NilError(t, err)
|
||||
|
||||
out := bytes.NewBuffer(nil)
|
||||
|
||||
Reference in New Issue
Block a user