-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WithClient to daemon.Image (#674)
Fixes #139 Rather than wrapping the docker client options (as proposed in #139), this just allows you to pass in an entire client implementation. This makes testing a nicer, since we can pass in a MockImageSaver, and callers can configure the client however they'd like without us having to keep up with the docker client dependency. By default, we'll still use the same options (client.FromEnv) to reach the daemon (for compatibility).
- Loading branch information
1 parent
0593b71
commit 4336215
Showing
3 changed files
with
65 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters