2020-09-07 14:39:19 +02:00
|
|
|
/*
|
2020-09-22 12:13:00 +02:00
|
|
|
Copyright 2020 Docker Compose CLI authors
|
2020-09-07 14:39:19 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-09-07 18:23:28 +02:00
|
|
|
|
2020-09-07 14:39:19 +02:00
|
|
|
"github.com/docker/compose-cli/api/volumes"
|
|
|
|
"github.com/docker/compose-cli/errdefs"
|
|
|
|
)
|
|
|
|
|
|
|
|
type volumeService struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *volumeService) List(ctx context.Context) ([]volumes.Volume, error) {
|
|
|
|
return nil, errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-09-24 14:58:19 +02:00
|
|
|
func (c *volumeService) Create(ctx context.Context, name string, options interface{}) (volumes.Volume, error) {
|
2020-09-07 14:39:19 +02:00
|
|
|
return volumes.Volume{}, errdefs.ErrNotImplemented
|
|
|
|
}
|
2020-09-08 15:27:56 +02:00
|
|
|
|
2020-09-09 15:49:43 +02:00
|
|
|
func (c *volumeService) Delete(ctx context.Context, id string, options interface{}) error {
|
2020-09-08 15:27:56 +02:00
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
2020-10-13 14:10:48 +02:00
|
|
|
|
|
|
|
func (c *volumeService) Inspect(ctx context.Context, volumeID string) (volumes.Volume, error) {
|
|
|
|
return volumes.Volume{}, errdefs.ErrNotImplemented
|
|
|
|
}
|