add dry-run support of pause and unpause commands

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2023-01-30 10:00:40 +01:00
parent a93f09efac
commit 6754c6b68a
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ func (d *DryRunClient) ContainerKill(ctx context.Context, container, signal stri
}
func (d *DryRunClient) ContainerPause(ctx context.Context, container string) error {
return ErrNotImplemented
return nil
}
func (d *DryRunClient) ContainerRemove(ctx context.Context, container string, options moby.ContainerRemoveOptions) error {
@ -91,7 +91,7 @@ func (d *DryRunClient) ContainerStop(ctx context.Context, container string, opti
}
func (d *DryRunClient) ContainerUnpause(ctx context.Context, container string) error {
return ErrNotImplemented
return nil
}
func (d *DryRunClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, moby.ContainerPathStat, error) {