vendor: github.com/moby/moby/api, moby/moby/client master
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -40,10 +40,10 @@ func NewVolumeFormat(source string, quiet bool) Format {
|
||||
}
|
||||
|
||||
// VolumeWrite writes formatted volumes using the Context
|
||||
func VolumeWrite(ctx Context, volumes []*volume.Volume) error {
|
||||
func VolumeWrite(ctx Context, volumes []volume.Volume) error {
|
||||
render := func(format func(subContext SubContext) error) error {
|
||||
for _, vol := range volumes {
|
||||
if err := format(&volumeContext{v: *vol}); err != nil {
|
||||
if err := format(&volumeContext{v: vol}); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ foobar_bar
|
||||
},
|
||||
}
|
||||
|
||||
volumes := []*volume.Volume{
|
||||
volumes := []volume.Volume{
|
||||
{Name: "foobar_baz", Driver: "foo"},
|
||||
{Name: "foobar_bar", Driver: "bar"},
|
||||
}
|
||||
@ -144,7 +144,7 @@ foobar_bar
|
||||
}
|
||||
|
||||
func TestVolumeContextWriteJSON(t *testing.T) {
|
||||
volumes := []*volume.Volume{
|
||||
volumes := []volume.Volume{
|
||||
{Driver: "foo", Name: "foobar_baz"},
|
||||
{Driver: "bar", Name: "foobar_bar"},
|
||||
}
|
||||
@ -167,7 +167,7 @@ func TestVolumeContextWriteJSON(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestVolumeContextWriteJSONField(t *testing.T) {
|
||||
volumes := []*volume.Volume{
|
||||
volumes := []volume.Volume{
|
||||
{Driver: "foo", Name: "foobar_baz"},
|
||||
{Driver: "bar", Name: "foobar_bar"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user