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

9081 Коммитов

Автор SHA1 Сообщение Дата
Morgan Bauer 9b12a765bb Merge pull request #201 from stevvooe/remove-empty-file
client: remove empty file
2016-04-14 11:41:32 +01:00
David Calavera 7781a9e7cd Merge pull request #198 from vdemeester/test-container-copy
Add unit test to container_copy.go methods
2016-04-13 11:36:43 -07:00
Stephen J Day 8066cc0d10 client: remove empty file
The definition of `RequestPrivilegeFunc` has been moved elsewhere,
obseleting this file. Removing for general hygiene.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-13 11:23:37 -07:00
Lei Jitang da669e8b6a make restartpolicy.IsNone return true if restart policy name is null
if create a container via API and does not set restart polciy, the restart
name is "", it should also be "no" restart policy.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-04-13 08:19:48 -04:00
Tibor Vass 87b3df23dc Merge pull request #195 from calavera/version_comparisons
Move Docker version comparisons to the types package.
2016-04-12 12:49:49 -04: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
David Calavera 663018389e Move Docker version comparisons to the types package.
Most of the comparisons are done at the API level.
In the long term, it makes more sense to have these functions
in this package, so people can reuse them implementing other clients.

This change removes the custom Version type. The custom type doesn't
provide any extra value since you can wrap any string in it an the
comparisons can easily be done with plain strings.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-04-12 09:30:20 -07:00
Vincent Demeester 919e008632
Add unit test to container_copy.go methods
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-12 17:31:40 +02:00
Vincent Demeester 2072866fc2 Merge pull request #197 from vdemeester/fix-some-lint
Add missing comment on ToParamWithVersion
2016-04-12 17:27:51 +02:00
Vincent Demeester dab36939d7 Add missing comment on ToParamWithVersion
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-12 09:23:19 +02:00
David Calavera a752e6b40e Merge pull request #196 from stevvooe/remove-publish-service
types/container: remove PublishService from container.Config
2016-04-11 15:30:45 -07:00
Stephen J Day f5fbd4e4ab types/container: remove PublishService from container.Config
This was never used in a non-experimental branch. It was removed from
docker in https://github.com/docker/docker/pull/16645.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-11 13:50:25 -07:00
David Calavera 6156954c5d Merge pull request #145 from cyphar/cgroup-stats-pids-limit
types: stats: add pids.max to PidsStats
2016-04-08 09:41:09 -07:00
David Calavera 39e3fe4ff2 Merge pull request #187 from vdemeester/bring-back-my-lint
Fixes lint in `validate` target
2016-04-07 12:51:08 -04:00
Vincent Demeester 5b9e86c118 Merge pull request #191 from nishanttotla/add-update-version-to-interface
Adding UpdateClientVersion to APIClient interface
2016-04-05 09:03:00 +02: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
Dongluo Chen 30ac018920 Merge pull request #174 from nishanttotla/container-filter-backward-compat
Allowing slice container filters for older daemons
2016-04-04 14:06:33 -07:00
Tibor Vass dcbc3b7ce4 Merge pull request #186 from bboreham/blank-json
Don't claim to have json payload when it is blank
2016-04-04 14:20:00 -04:00
Vincent Demeester 37cc88a041 Merge pull request #185 from nishanttotla/version-update-function
Adding function to allow for updating client version
2016-04-04 10:19:07 +02:00
Nishant Totla c3e35722ba Adding function to allow for updating client version
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2016-04-02 12:11:34 -07:00
Bryan Boreham 7a92443cac Refactor: in sendRequest() skip allocating a body if the object is nil
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2016-04-02 18:02:56 +00:00
Bryan Boreham e85d05fef6 Add test for valid json supplied in 'start' request
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2016-04-02 17:44:30 +00:00
Vincent Demeester ab3adb914d Fixes lint in `validate` target
For some reason, the `golint` check in `make validate` does nothing, and
thus, we missed some lint warnings.

This add a `lint` target and make the `validate` target depends on and
make it pass.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-04-01 23:44:30 +02:00
Bryan Boreham 9468fd10b4 Don't claim to have json payload if it is blank
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2016-04-01 18:22:46 +01: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
Nishant Totla 81388f00dd Allowing slice container filters for older daemons
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2016-04-01 00:52:49 -07:00
Vincent Demeester 8924d69003 Merge pull request #183 from WeiZhang555/hijack-throw-err
Throw client.Do(req) error in postHijacked
2016-04-01 08:16:28 +02:00
David Calavera b4eede2c5f Merge pull request #184 from allencloud/fix-typos
fix typos
2016-03-31 10:50:08 -07:00
allencloud d31745bb2c fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-04-01 01:21:51 +08:00
Zhang Wei abe12a705e Throw client.Do(req) error in postHijacked
Sometime when client issues an http request throw clientconn.Do(req),
server can send an error through hijacked http connection and close this
connection afterwards. We need to throw this error(httputil.ErrPersistEOF)
out, to let client know the connection is closed, so client can choose
to abort after reading detailed error message from hijacked connection.

Also client can ignore other kinds of errors.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2016-03-31 15:59:45 +08:00
John Howard 128e584a01 Merge pull request #180 from darrenstahlmsft/WindowsStorageQos
Added network max bandwidth to host config
2016-03-30 18:49:47 -07:00
Darren Stahl 13246fe108 Added network max bandwidth to container host config
Signed-off-by: Darren Stahl <darst@microsoft.com>
2016-03-30 18:02:09 -07:00
David Calavera 52d333f37c Merge pull request #181 from darrenstahlmsft/RenameIOMaximum
rename IO maximums to better match the existing naming
2016-03-30 16:42:50 -07:00
Darren Stahl 53f04117fa rename IO maximums to better match the existing naming
Signed-off-by: Darren Stahl <darst@microsoft.com>
2016-03-30 15:49:30 -07:00
David Calavera 6ca9064650 Release v0.3.2
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-03-30 13:08:29 -04:00
Alexander Morozov 1c77fab9bb Merge pull request #177 from calavera/revert_server_name_set
Revert "Set the TLS connection ServerName when the transport is created."
2016-03-30 09:53:03 -07:00
David Calavera b1e8fe822f Revert "Set the TLS connection ServerName when the transport is created."
This reverts commit 9eec4dc67b.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-03-30 12:45:44 -04:00
Vincent Demeester 9a0cccd2da Merge pull request #176 from luxifer/patch-1
Fix doc typo in ContainerWait function
2016-03-30 12:42:04 +02: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
Florent Viel 9d7c6139fa Fix doc typo in ContainerWait function
Signed-off-by: Florent Viel <florent.viel69@gmail.com>
2016-03-30 09:36:41 +02:00
Aleksa Sarai f225a8d310 types: stats: add pids.max to PidsStats
In order to allow nice usage statistics (in terms of percentages and
other such data), add the value of pids.max to the PidsStats struct
returned from the pids cgroup controller.

It has to be an int64 in order for "max" to be represented as -1 (which
mirrors the OCI specification for Resources.Pids.Limit).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
2016-03-29 15:19:01 +11:00
Vincent Demeester e37a82dfce Merge pull request #166 from darrenstahlmsft/WindowsStorageQos
Fix Windows storage qos hostconfig names
2016-03-25 19:56:47 +01:00
Vincent Demeester acfafc2e7c Merge pull request #150 from pdevine/swarm-node-data
Add swarm node data
2016-03-25 19:53:33 +01:00
David Calavera c30f9e262a Merge pull request #157 from yongtang/20122-volume-one-character
Add "SecurityOptions" in Info.
2016-03-25 11:10:29 -07:00
David Calavera 36796384e8 Merge pull request #170 from allencloud/fix-typos
fix typos
2016-03-24 11:04:25 -07:00
allencloud 17639c5326 fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-03-25 01:17:56 +08:00
Vincent Demeester 094c61838c Merge pull request #148 from vdemeester/network-list-test
Add unit tests to NetworkList
2016-03-23 21:27:43 +01:00
David Calavera 50b2e31d58 Release version v0.3.1.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-03-23 14:58:20 -04:00
David Calavera 20fcb890ea Merge pull request #169 from calavera/escape_path
Make sure the request path is properly encoded.
2016-03-23 11:57:09 -07:00