|
@@ -35,6 +35,7 @@ import (
|
|
|
"github.com/docker/compose-cli/aci/login"
|
|
"github.com/docker/compose-cli/aci/login"
|
|
|
"github.com/docker/compose-cli/api/compose"
|
|
"github.com/docker/compose-cli/api/compose"
|
|
|
"github.com/docker/compose-cli/api/containers"
|
|
"github.com/docker/compose-cli/api/containers"
|
|
|
|
|
+ "github.com/docker/compose-cli/api/volumes"
|
|
|
"github.com/docker/compose-cli/api/secrets"
|
|
"github.com/docker/compose-cli/api/secrets"
|
|
|
"github.com/docker/compose-cli/backend"
|
|
"github.com/docker/compose-cli/backend"
|
|
|
apicontext "github.com/docker/compose-cli/context"
|
|
apicontext "github.com/docker/compose-cli/context"
|
|
@@ -115,6 +116,7 @@ func getAciAPIService(aciCtx store.AciContext) *aciAPIService {
|
|
|
type aciAPIService struct {
|
|
type aciAPIService struct {
|
|
|
*aciContainerService
|
|
*aciContainerService
|
|
|
*aciComposeService
|
|
*aciComposeService
|
|
|
|
|
+ *aciVolumeService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (a *aciAPIService) ContainerService() containers.Service {
|
|
func (a *aciAPIService) ContainerService() containers.Service {
|
|
@@ -129,6 +131,10 @@ func (a *aciAPIService) SecretsService() secrets.Service {
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (a *aciAPIService) VolumeService() volumes.Service {
|
|
|
|
|
+ return a.aciVolumeService
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type aciContainerService struct {
|
|
type aciContainerService struct {
|
|
|
ctx store.AciContext
|
|
ctx store.AciContext
|
|
|
}
|
|
}
|
|
@@ -496,6 +502,18 @@ func (cs *aciComposeService) Convert(ctx context.Context, project *types.Project
|
|
|
return nil, errdefs.ErrNotImplemented
|
|
return nil, errdefs.ErrNotImplemented
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type aciVolumeService struct {
|
|
|
|
|
+ ctx store.AciContext
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (cs *aciVolumeService) List(ctx context.Context) ([]volumes.Volume, error) {
|
|
|
|
|
+ return nil, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (cs *aciVolumeService) Create(ctx context.Context, options interface{}) (volumes.Volume, error) {
|
|
|
|
|
+ return volumes.Volume{}, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type aciCloudService struct {
|
|
type aciCloudService struct {
|
|
|
loginService login.AzureLoginServiceAPI
|
|
loginService login.AzureLoginServiceAPI
|
|
|
}
|
|
}
|