mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Add ps and logs to compose API
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
c6c341ef16
commit
46e58a28d0
6 changed files with 156 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue