mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Connecting it all
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
parent
9ed06ece5b
commit
08562b403e
13 changed files with 154 additions and 57 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue