update param name and add comments for logs and ps methods

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-08-07 10:16:12 +02:00
parent 00f17534a3
commit e097d19d7c
2 changed files with 5 additions and 2 deletions

View File

@ -29,6 +29,8 @@ type Service interface {
Up(ctx context.Context, opts cli.ProjectOptions) error Up(ctx context.Context, opts cli.ProjectOptions) error
// Down executes the equivalent to a `compose down` // Down executes the equivalent to a `compose down`
Down(ctx context.Context, opts cli.ProjectOptions) error Down(ctx context.Context, opts cli.ProjectOptions) error
Logs(ctx context.Context, projectName cli.ProjectOptions) error // Logs executes the equivalent to a `compose logs`
Ps(background context.Context, options cli.ProjectOptions) ([]types.ServiceStatus, error) Logs(ctx context.Context, opts cli.ProjectOptions) error
// Ps executes the equivalent to a `compose ps`
Ps(ctx context.Context, opts cli.ProjectOptions) ([]types.ServiceStatus, error)
} }

View File

@ -131,6 +131,7 @@ func (cs *composeService) Down(ctx context.Context, opts cli.ProjectOptions) err
fmt.Printf("Down command on project %q", prj.Name) fmt.Printf("Down command on project %q", prj.Name)
return nil return nil
} }
func (cs *composeService) Ps(ctx context.Context, opts cli.ProjectOptions) ([]ecstypes.ServiceStatus, error) { func (cs *composeService) Ps(ctx context.Context, opts cli.ProjectOptions) ([]ecstypes.ServiceStatus, error) {
return nil, errdefs.ErrNotImplemented return nil, errdefs.ErrNotImplemented
} }