-
Notifications
You must be signed in to change notification settings - Fork 549
Changes to loading and saving #494
Conversation
What is the purpose of using |
Current coverage is 50.23% (diff: 15.00%)@@ master #494 diff @@
==========================================
Files 83 83
Lines 3219 3235 +16
Methods 0 0
Messages 0 0
Branches 456 460 +4
==========================================
- Hits 1627 1625 -2
- Misses 1443 1459 +16
- Partials 149 151 +2
|
@mattnworb The client will support both now. I think @johnflavin was just trying to make the method names match the API endpoint names. Does that make sense? |
I think I misunderstood why the existing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anyway, the change LGTM. Thanks again @johnflavin for the contribution! I think this definitely reduces confusion around the method names.
also the TravisCI errors look completely unrelated. |
Yup |
@mattnworb Any idea why travis fails for those two docker versions? |
@davidxia I think some assumption we made in our script that installs a specific docker version in travis's environment must have changed or been broken by them |
Fix for #154 and #464.
Load and Create
Previously, the various
DockerClient.load(...)
methods all wrapped the/images/create
docker API endpoint, not the/images/load
endpoint as the method name implies. In fact, no methods inDockerClient
wrapped/images/load
.This PR:
DockerClient.load(...)
methods;DockerClient.create(...)
methods, the implementations of which perform the functions thatDefaultDockerClient.load(...)
used to perform;DockerClient.load(ImageStream)
method, the implementation of which calls/images/load
.Save
AuthConfig
when calling/images/{name}/get
. The methodDockerClient.save(String, AuthConfig)
has been deprecated.save
method,DockerClient.save(String)
has been changed toDockerClient.save(String...)
. This is to make use of the two related APIs/images/{name}/get
and/images/get?names=name1&names=name2...
.