| 219 | } |
| 220 | |
| 221 | func (f *fakeClient) ContainerRename(ctx context.Context, oldName string, options client.ContainerRenameOptions) (client.ContainerRenameResult, error) { |
| 222 | if f.containerRenameFunc != nil { |
| 223 | return client.ContainerRenameResult{}, f.containerRenameFunc(ctx, oldName, options.NewName) |
| 224 | } |
| 225 | |
| 226 | return client.ContainerRenameResult{}, nil |
| 227 | } |
| 228 | |
| 229 | func (f *fakeClient) ContainerCommit(ctx context.Context, containerID string, options client.ContainerCommitOptions) (client.ContainerCommitResult, error) { |
| 230 | if f.containerCommitFunc != nil { |