Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Sebastiaan van Stijn 1e9b026e8c
Remove unused "size" query parameter
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-08-11 23:27:49 +02:00
Brian Goff d8662f7f77 Merge pull request #321 from yongtang/23367-out-of-band-volume-driver-deletion
Add `--force` in `docker volume rm` to fix out-of-band volume driver deletion
2016-08-09 10:39:50 -04:00
Diogo Monica 61cb872d9d Adding force to the RemoveNode API
Signed-off-by: Diogo Monica <diogo.monica@gmail.com>
2016-07-28 15:28:07 -07:00
Aaron Lehmann dd4c0a60a1 Replace secrets with join tokens
Needed for docker/docker#24823.

This changes datastructures in accordance with the upstream swarmkit
changes. It also adds flags to SwarmUpdate to allow token rotation.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-07-20 16:13:12 -07:00
Yong Tang 781ce7d855 Add `--force` in `docker volume rm` to fix out-of-band volume driver deletion
This fix tries to address the issue raised in

https://github.com/docker/docker/issues/23367

where an out-of-band volume driver deletion leaves some data in docker.
This prevent the reuse of deleted volume names (by out-of-band volume driver
like flocker).

This fix adds a `--force` field in `docker volume rm` to forcefully purge
the data of the volume that has already been deleted.

This fix is related to pull request in docker:

https://github.com/docker/docker/pull/23436

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-07-15 15:58:38 -07:00
Stephen J Day 105a3596cf
client/services: remove header arguments from ServiceCreate, ServiceUpdate
In general, the Docker API client should avoid exposing HTTP details in
client, as it elides type safety and makes discovery of inputs to a
method more challenging. These have been removed and replaced with an
options type.

We may want to consider arbitrary header transmission through context,
but that is a bigger change.

Proper build tags have been added to experimental features that were
failing during non-tagged build.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-07-01 11:30:35 -07:00
Vincent Demeester f3ed0875cb Merge pull request #284 from icecrime/not_found_errors
Support NodeInspectWithRaw, improve not found errors
2016-06-17 01:44:23 +02:00
Arnaud Porterie (icecrime) 537a03e932
Support NodeInspectWithRaw, improve not found errors
Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
2016-06-16 16:39:49 -07:00
Nishant Totla bea12b8c3a
Passing headers for service create/update
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2016-06-16 15:08:15 -07:00
Arnaud Porterie (icecrime) a0da8ddf4b
Modify `ServiceInspect` to return raw data
Modify `ServiceInspect` to `ServiceInspectWithRaw`, and have it returned
the raw bytes.

Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
2016-06-15 22:11:45 -07:00
David Calavera f50fbe5f9c Merge pull request #271 from yongtang/22471-daemon-shutdown-timeout
Add config parameter to change per-container stop timeout during daemon shutdown
2016-06-15 09:24:19 -07:00
Vincent Demeester 20d52fd675
Split CommonAPIClient interface into several smaller
This groups method definitions by "object" type (container, image, …)
into smaller interface and use composition to make CommonAPIClient and
APIClient the same as right now.

This also moves `Checkpoint*` methods to the *experimental* interface as
it will be enabled into experimental first.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-06-14 12:01:37 +02:00
Tibor Vass 0543c48aad plugins: update APIClient interface
Signed-off-by: Tibor Vass <teabee89@gmail.com>
2016-06-14 00:24:37 -07:00
Yong Tang b9b962eaba Add config parameter to change per-container stop timeout during daemon shutdown
This fix tries to add config paramter to change per-contaienr stop timeout during
the daemon shutdown. As the part of the update, this fix also changes `docker restart`
and `docker stop` so that if `--time` is not specified, then the default stop timeout
(10s) will be used.

This fix is related to
https://github.com/docker/docker/pull/22566
https://github.com/docker/docker/issues/22471

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-13 19:08:23 -07:00
Victor Vieux 2f9f0bff7a change node update and swarm update to specs
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-06-12 05:45:13 -07:00
Victor Vieux 4eece3c2c5 Add swarmkit management API endpoints
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-06-09 00:55:05 -07:00
Pierre Dal-Pra da7b0e73dd Use time.Duration as type for timeouts
Signed-off-by: Pierre Dal-Pra <dalpra.pierre@gmail.com>
2016-06-07 13:27:53 +02:00
David Calavera f4e3fb72ce Merge pull request #240 from WeiZhang555/conditional-url-value
Only set url value when it's not empty
2016-06-01 13:49:33 -07:00
Zhang Wei 1b901696f6 Only set url value when it's not empty
Currently docker start API always contains a trailing `checkpoint=` even
if value is empty, this is unnecessary, we can set it only when it's not
empty.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2016-06-01 09:45:36 +08:00
Yong Tang a2ff4f5f8e Remove deprecated -f flag on docker tag
This fix is related to docker:
https://github.com/docker/docker/pull/23090

The -f flag on docker tag has been deprecated in docker 1.10 and is
expected to be removed in docker 1.12.

This fix updated the associated files in engine-api.

Related tests have also been updated.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-29 10:14:38 -07:00
Kai Qiang Wu(Kennan) fe6e4b67e0 Add Raw interface for network,volume inspect
Closes: #207
Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
2016-05-23 01:57:39 +00:00
boucher f1c9d4063f Add Checkpoint Create/List/Delete methods.
Maps directly to the API exposed by containerd.

Signed-off-by: boucher <rboucher@gmail.com>
2016-05-12 13:44:05 -04:00
Vincent Demeester 6dc7afebdb
Update CopyToContainer method signature…
… to define the required arguments needed to be called.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-15 19:09:57 +02:00
David Calavera a6dca654f2 Merge pull request #162 from vdemeester/137-required-containers
Make required arguments required.
2016-04-12 09:49:46 -07:00
Nishant Totla fec4f715f1 Adding UpdateClientVersion to APIClient interface
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2016-04-04 16:49:34 -07:00
Vincent Demeester 11295d3bce Using distribution/reference for Image* function
At some point the format of the reference should be daemon specific, and
thus should not be *imposed* via the repository:tag current
arguments. The engine-api library should encorage the use of reference.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-03-30 12:33:23 +02:00
Vincent Demeester 486171b34d Make required arguments required.
Change method signatures to make required arguments actually
required (using a paramater), all accross the API.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-03-30 12:33:23 +02:00
Stephen J Day 002fcc738c client: plumb net/context.Context through entire API
In general, `net/context.Context` should be the first argument to
methods that may be on a request call chain. While some API methods had
context, many did not, making support inconsistent. Applications that
require full plumbing of context, such as those that rely on
cancellation for resource cleanup, would be incompatible with
inconsistent plumbing. The change takes a first pass at adding context
through the entire API.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-03-08 13:30:37 -08:00
Lei Jitang 8734fd79cb Add a quite flat to image load for adding progress bar to load
Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-02-03 21:04:55 -05:00
David Calavera 535f336b5e Make streaming operations cancellable.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-02-01 16:33:44 -05:00
Madhu Venugopal d1c2a8739c an option to disconnect an endpoint from a network forcefully
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2016-01-09 14:54:49 -08:00
David Calavera ee2fe708a6 Send only the endpoint settings to connect to a network.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-07 20:41:50 -05:00
David Calavera 7bff8189ca Ensure that Client always implement APIClient.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-07 19:37:40 -05:00
Alessandro Boch 85a5829518 Changes to support specify IP addresses for the container
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-01-07 16:13:55 -08:00
Vincent Demeester 2ecc23fbfe Add an interface defining all the API methods
Backported from docker/docker project. Makes it easy and readable to
know what methods to implement to be considered as a complete docker client.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-01-07 23:37:02 +01:00