Introduce removeOrphans to cleanup injected AWS simulation container

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-12-16 10:14:31 +01:00
parent db5467ce22
commit 855a879a6a
No known key found for this signature in database
GPG key ID: 9858809D6F8F6E7E
12 changed files with 63 additions and 32 deletions

View file

@ -52,7 +52,7 @@ func (c *composeService) Up(context.Context, *types.Project, bool) error {
return errdefs.ErrNotImplemented
}
func (c *composeService) Down(context.Context, string) error {
func (c *composeService) Down(context.Context, string, bool) error {
return errdefs.ErrNotImplemented
}

View file

@ -37,7 +37,7 @@ type Service interface {
// Up executes the equivalent to a `compose up`
Up(ctx context.Context, project *types.Project, detach bool) error
// Down executes the equivalent to a `compose down`
Down(ctx context.Context, projectName string) error
Down(ctx context.Context, projectName string, removeOrphans bool) error
// Logs executes the equivalent to a `compose logs`
Logs(ctx context.Context, projectName string, consumer LogConsumer, options LogOptions) error
// Ps executes the equivalent to a `compose ps`