зеркало из https://github.com/docker/compose-cli.git
update param name and add comments for logs and ps methods
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
Родитель
00f17534a3
Коммит
e097d19d7c
|
@ -29,6 +29,8 @@ type Service interface {
|
|||
Up(ctx context.Context, opts cli.ProjectOptions) error
|
||||
// Down executes the equivalent to a `compose down`
|
||||
Down(ctx context.Context, opts cli.ProjectOptions) error
|
||||
Logs(ctx context.Context, projectName cli.ProjectOptions) error
|
||||
Ps(background context.Context, options cli.ProjectOptions) ([]types.ServiceStatus, error)
|
||||
// Logs executes the equivalent to a `compose logs`
|
||||
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)
|
||||
}
|
||||
|
|
|
@ -131,6 +131,7 @@ 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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче