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

45 Коммитов

Автор SHA1 Сообщение Дата
Sebastiaan van Stijn 3a9562061f Merge pull request #336 from vieux/plugin_rm_force
add 'force' parameter to docker plugin rm to remove an active plugin
2016-08-02 17:08:26 +02: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
Victor Vieux bbd480dd54 add 'force' parameter to docker plugin rm to remove an active plugin
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-07-22 07:08:23 -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
Victor Vieux 4eece3c2c5 Add swarmkit management API endpoints
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-06-09 00:55:05 -07: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
Yong Tang 267c31abd8 Add `--limit` option to `docker search`
This fix is related to docker:
https://github.com/docker/docker/pull/23107
https://github.com/docker/docker/issues/23055

Currently docker search result caps at 25 and there is no way to allow getting more results (if exist).

This fix adds the flag --limit so that it is possible to return more results from the docker search.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-01 06:35:42 -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
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
David Calavera 4fb39068c9 Merge pull request #214 from vdemeester/search-filter
Add filter support for ImageSearch
2016-05-01 16:11:12 -07:00
Brian Goff 9cd2047b45
Add `Details` field for logs
`Details` instructs the backend you want the extra logged details when reading
logs, like labels, env, etc.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-04-29 09:32:44 -04:00
Vincent Demeester bdb4411e27
Add filter support for ImageSearch
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-27 18:49:45 +02:00
Morgan Bauer 1cf0da80a9
Comments on usage of ImageLoad
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
2016-04-26 23:52:57 -07:00
Vincent Demeester 53e97da82e
Add all to option to ImagePullOptions
This make the `--all` option more explicit, API wise.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-26 16:18:37 +02: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
Vincent Demeester acf8a70ecb Creates a types/reference package…
… for reference related code O:).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-01 11:00:16 +02:00
allencloud d31745bb2c fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-04-01 01:21:51 +08: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
allencloud 17639c5326 fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-03-25 01:17:56 +08:00
Evan Hazlett 95cfeb66ab label support for images, networks and volumes
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2016-03-18 18:59:55 -04:00
John Howard 8253d8a09d Windows: Isolation word fix
Signed-off-by: John Howard <jhoward@microsoft.com>
2016-02-03 10:48:04 -08:00
David Calavera f3d1cee74f Revert "Moving Pull Behavior into engine-api to support docker pr#16609"
This reverts commit 8c89d35a31.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-25 13:35:38 -05:00
Don Kjer 8c89d35a31 Moving Pull Behavior into engine-api to support docker pr#16609
Signed-off-by: Don Kjer <don.kjer@gmail.com>

Adding comment to PullBehavior.String()
2016-01-14 22:19:25 +00:00
cr7pt0gr4ph7 72e9ae313a Improve formatting of types.ImageCreateOptions, ImageImportOptions and ImagePullOptions.
Signed-off-by: Lukas Waslowski <cr7pt0gr4ph7@gmail.com>
2016-01-08 14:56:53 +01:00
David Calavera 46be3b84c2 Fix ImageBuilderOptions.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-05 16:44:51 -05:00
David Calavera 0c77b4b120 Fix repository imports and packages.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-04 18:26:13 -05:00
Vincent Demeester 556a365760 Implement configurable detach key
Implement configurable detach keys (for `attach`, exec`, `run` and
`start`) using the client-side configuration

- Adds a `--detach-keys` flag to `attach`, `exec`, `run` and `start`
  commands.
- Adds a new configuration field (in `~/.docker/config.json`) to
  configure the default escape keys for docker client.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-01-03 23:03:39 +01:00
Antonio Murdaca 1c4dcce1c9 Merge pull request #18878 from calavera/conditional_load_response
Make `docker load` to output json when the response content type is json.
2015-12-24 01:11:54 +01:00
Daniel Nephin bb7f487685 Remove package pkg/ulimit, use go-units instead.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-23 13:27:58 -05:00
Zhang Wei c9593f2a55 Add filter for `network ls` to hide predefined net
Add filter support for `network ls` to hide predefined network,
then user can use "docker network rm `docker network ls -f type=custom`"
to delete a bundle of userdefined networks.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2015-12-23 13:26:40 +08:00
David Calavera fc0f6a4e28 Make `docker load` to output json when the response content type is json.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-22 19:00:27 -05:00
David Calavera 23b784d9d9 Move Config and HostConfig from runconfig to types/container.
- Make the API client library completely standalone.
- Move windows partition isolation detection to the client, so the
  driver doesn't use external types.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-22 13:34:30 -05:00
David Calavera f74d805310 Move filters package to the API.
These filters are only use to interchange data between clients and daemons.
They don't belong to the parsers package.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-15 18:13:26 -05:00
Daniel Nephin dc954473bb Move IndexInfo and ServiceConfig types to api/types/registry/registry.go
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-12-14 11:28:02 -05:00
Daniel Nephin 420dfebd24 Move AuthConfig to api/types
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-12-14 11:22:01 -05:00
David Calavera 21f48252f3 Make the commit configuration to be a typed struct rather than accepting a string.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:06:58 -05:00
David Calavera 433055726b Implement docker resize with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:05:00 -05:00
David Calavera 576337705d Implement docker push with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:05:00 -05:00
David Calavera 0c3f68b576 Implement docker pull with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:05:00 -05:00
David Calavera 4c6bc46188 Implement docker exec with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:59 -05:00
David Calavera 57d0053104 Implement docker attach with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:59 -05:00
David Calavera 9a40f025a5 Create interface that clients that talk to the api must fulfill.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-09 12:04:58 -05:00