Add ps and logs to compose API

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-08-05 16:32:51 +02:00
parent c6c341ef16
commit 46e58a28d0
6 changed files with 156 additions and 0 deletions

View file

@ -26,10 +26,12 @@ import (
"github.com/compose-spec/compose-go/cli"
"github.com/docker/api/context/cloud"
"github.com/docker/api/errdefs"
"github.com/docker/api/backend"
"github.com/docker/api/compose"
"github.com/docker/api/containers"
ecstypes "github.com/docker/ecs-plugin/pkg/compose"
)
type apiService struct {
@ -129,3 +131,10 @@ func (cs *composeService) Down(ctx context.Context, opts cli.ProjectOptions) err
fmt.Printf("Down command on project %q", prj.Name)
return nil
}
func (cs *composeService) Ps(ctx context.Context, opts cli.ProjectOptions) ([]ecstypes.ServiceStatus, error) {
return nil, errdefs.ErrNotImplemented
}
func (cs *composeService) Logs(ctx context.Context, opts cli.ProjectOptions) error {
return errdefs.ErrNotImplemented
}