Connecting it all

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
Guillaume Tardif 2020-09-07 18:23:28 +02:00
parent 9ed06ece5b
commit 08562b403e
13 changed files with 154 additions and 57 deletions

View file

@ -18,6 +18,7 @@ package client
import (
"context"
"github.com/docker/compose-cli/api/volumes"
"github.com/docker/compose-cli/api/compose"
@ -87,6 +88,7 @@ func (c *Client) SecretsService() secrets.Service {
return &secretsService{}
}
// VolumeService returns the backend service for the current context
func (c *Client) VolumeService() volumes.Service {
if vs := c.bs.VolumeService(); vs != nil {

View file

@ -18,6 +18,7 @@ package client
import (
"context"
"github.com/docker/compose-cli/api/volumes"
"github.com/docker/compose-cli/errdefs"
)
@ -31,6 +32,6 @@ func (c *volumeService) List(ctx context.Context) ([]volumes.Volume, error) {
}
// Create creates a volume
func (c *volumeService) Create(ctx context.Context, options interface {}) (volumes.Volume, error) {
func (c *volumeService) Create(ctx context.Context, options interface{}) (volumes.Volume, error) {
return volumes.Volume{}, errdefs.ErrNotImplemented
}

View file

@ -20,13 +20,11 @@ import (
"context"
)
// Volume volume info
type Volume struct {
Name string
}
type VolumeCreateOptions struct {
account string
fileshare string
ID string
Name string
Description string
}
// Service interacts with the underlying container backend