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

9154 Коммитов

Автор SHA1 Сообщение Дата
David Calavera 060cfa8db2 Merge pull request #243 from vdemeester/add-more-container-stats
Add happy path test on ContainerStats
2016-05-31 18:16:25 -07:00
Michael Holzheu f015fc3f40 seccomp: Add ppc and s390x to types/seccomp.go
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
2016-05-31 08:39:31 -04:00
Vincent Demeester 9b41a1b340
Add error unit tests for Info
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-31 12:52:06 +02:00
Vincent Demeester 21fd380f32
Add unit tests to Events
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-31 12:39:31 +02:00
Vincent Demeester f1f691d82f Add happy path test on ContainerStats
Complete unit tests for `ContainerStats` by adding happy path cases :)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-31 11:30:20 +02:00
Antonio Murdaca f14eb279d8 Merge pull request #241 from vdemeester/add-more-container-export-tests
Add happy path test on ContainerExport
2016-05-31 11:19:35 +02:00
Vincent Demeester 55960d6e0b
Add a happy path test on ContainerExport
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-31 11:17:25 +02:00
Vincent Demeester ad5d94e69e
Add happy path test on ContainerLogs
Complete unit tests for `ContainerLogs` by adding happy path cases, and
complete potential errors coverage (with `Since` time parsing errors).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-31 11:15:14 +02:00
Vincent Demeester 6facb3f3c3 Merge pull request #239 from yongtang/05292016-remove-deprecated-docker-tag-f
Remove deprecated -f flag on docker tag
2016-05-30 23:58:09 +02: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
Ben Firshman a0532698b5 Handle JSON errors from the server
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-05-26 18:08:49 -07:00
Thomas Leonard 1b0ebe5e47 Add stutter to comments
This is a Go convention.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
2016-05-26 16:05:15 -07:00
Vincent Demeester c9b5a47a3a Merge pull request #237 from nishanttotla/fix-comments
Fix typos in comments
2016-05-26 08:52:53 +02:00
Nishant Totla 705e5e1a17
Fix typos in comments
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2016-05-25 17:50:50 -07:00
Thomas Leonard 3d29ca0e95 Add health states as consts
Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
2016-05-25 16:48:03 -07:00
Thomas Leonard 98039b806f Change some types
Requested by Stephen Day.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
2016-05-25 16:33:52 -07:00
Thomas Leonard 550e8f7e48 Update types to support HEALTHCHECK feature
Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
2016-05-25 11:52:08 -07:00
David Calavera 0e47ff2493 Merge pull request #228 from HackToday/addrawapi
Add Raw interface for network,volume inspect
2016-05-23 08:30:36 -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
David Calavera 83e511bd6c Merge pull request #232 from allencloud/add_field_description_in_types
add field description in types.go
2016-05-20 11:54:23 -07:00
Sebastiaan van Stijn 12fbeb3ac3 Merge pull request #226 from vdemeester/add-onlyoneexactmatch-to-filters
Add a new UniqueExactMatch method to filters
2016-05-20 17:54:02 +02:00
Vincent Demeester 00f6f958b9
Add a new UniqueExactMatch method to filters
It let us the possibility to validate that the filter is only present
once and thus can help validating boolean filters better.

For example, in docker/docker, right now, it is possible to pass
multiple filter values for the `dangling` boolean filter even if they
are not valid (i.e. --filter=dangling=toto --filter=dangling=true will
work even though we wanted only one value and a valid one).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-20 17:49:37 +02:00
Sebastiaan van Stijn 99c07ad16f Merge pull request #229 from LK4D4/drain_body
client: drain body to reuse connections
2016-05-20 16:53:51 +02:00
allencloud b428185b89 add field description in types.go
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-05-20 19:08:03 +08:00
Alexander Morozov a91a1072b5 Merge pull request #231 from jriggins/remove-unused
Removed unused method.
2016-05-19 14:25:29 -07:00
Jesse Riggins 1db795a53a Removed unused method.
Signed-off-by: Jesse Riggins <jesse@jr4consulting.com>
2016-05-19 16:24:44 -05:00
Alexander Morozov 5dd6452d4d client: drain body to reuse connections
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2016-05-19 09:33:47 -07:00
David Calavera 3d3d0b6c9d Merge pull request #227 from vdemeester/use-param-to-version-elsewhere
Use filters.ToParamWithVersion elsewhere
2016-05-18 12:21:31 -07:00
Vincent Demeester 38b38ec9db
Use filters.ToParamWithVersion elsewhere
ToParamWithVersion allows to serialize correctly filters for older
version of docker (1.9.1 and lower mainly). It is currently only used
for ContainerList but it's not the only place where the filters happens.

This make use of ToParamWithVersion for ImageList, VolumesList,
NetworkList and Events as well (all where filters where already there in
1.9.1).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-18 17:07:30 +02:00
David Calavera 1f09e8f4d7 Merge pull request #202 from boucher/checkpoints
Add Checkpoint Create/List/Delete methods.
2016-05-17 09:36:02 -07:00
Vincent Demeester c08ca7c7fa Merge pull request #224 from cpuguy83/revert_180
Revert "Added network max bandwidth to container host config"
2016-05-14 13:25:01 +02:00
Vincent Demeester e374c4fb5b Merge pull request #225 from yongtang/22463-docker-daemon-events
Add DaemonEventType so that daemon events could be emitted
2016-05-13 20:29:16 +02:00
Yong Tang 463610bf3d Add DaemonEventType so that daemon events could be emitted
This fix tries to add a new event type `DaemonEventType`
so that daemon events `daemon reload` could be emitted in docker.

This fix is related to

https://github.com/docker/docker/issues/22463
and
https://github.com/docker/docker/pull/22590

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-12 22:10:40 -07:00
Brian Goff 2ab40db718 Revert "Added network max bandwidth to container host config"
This reverts commit 13246fe108.

It was decided that we do not want this right now and need a larger
discussion around network policies.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-05-12 14:45:52 -04: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 bfa0df7725 Merge pull request #200 from coolljt0725/null_restart_policy_is_no
make restartpolicy.IsNone return true if restart policy name is null
2016-05-10 17:03:48 +02:00
Antonio Murdaca 129c6f3438 Merge pull request #221 from vdemeester/add-search-tests
Add unit tests for ImageSearch
2016-05-10 16:55:04 +02:00
Antonio Murdaca 744a7d2809 Merge pull request #220 from vdemeester/add-push-tests
Add unit tests to ImagePush
2016-05-10 16:54:42 +02:00
Antonio Murdaca e55f56cd7f Merge pull request #223 from vdemeester/complete-expected-url
Complete unit tests with expectedURL
2016-05-10 16:52:52 +02:00
Alexander Morozov dbe290f49f Merge pull request #222 from vdemeester/remove-dead-code
Remove some dead code.
2016-05-10 07:45:31 -07:00
Vincent Demeester a8d414c7ef
Remove some dead code.
convertKVStringsToMap is not use anywhere :)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-10 16:32:45 +02:00
Vincent Demeester ea7b6fdf6b
Complete unit tests with expectedURL
Complete existing unit test to add a check to the expected url.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-10 16:21:15 +02:00
Vincent Demeester 3f0c4c46a5
Add unit tests for ImageSearch
It also updates `ImageSearch` to not panic if no `PrivilegeFunc` are
passed in `ImageSearchOptions`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-10 10:31:11 +02:00
Alexander Morozov b12603948f Merge pull request #219 from vdemeester/add-pull-tests
Add unit tests for ImagePull
2016-05-09 14:39:28 -07:00
Vincent Demeester 01beade56e
Add unit tests to ImagePush
It also updates `ImagePush` to not panic if no `PrivilegeFunc` are
passed in `ImagePushOptions`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-09 19:19:34 +02:00
Vincent Demeester dea108d3aa
Add unit tests for ImagePull
It also updates `ImagePull` to not panic if no `PrivilegeFunc` are
passed in `ImagePullOptions`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-05-09 19:00:47 +02:00
Vincent Demeester 25e39dc361 Merge pull request #210 from allencloud/add-err-handling-and-reponse-body-Close
add err handling and change some order
2016-05-09 18:59:47 +02:00
Alexander Morozov 1fb8f09960 Merge pull request #218 from mrunalp/pid_container
Add support for specifying pid namespace by container id
2016-05-05 13:55:14 -07:00
Mrunal Patel bed98ec39a Add support for specifying pid namespace by container id
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-05-05 16:50:26 -04:00
David Calavera fd7f99d354 Merge pull request #215 from stevvooe/remove-istrusted
registry: remove is_trusted from SearchResult
2016-05-02 09:38:15 -07:00