diff options
author | Joffrey F <joffrey@docker.com> | 2016-11-23 15:15:58 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-11-28 15:28:04 -0800 |
commit | f5ac10c469fca252e69ae780749f4ec6fe369789 (patch) | |
tree | edd59b15fb03c7ce68187fbd8a41dd00f0d19537 /docker/api | |
parent | c66c7f8b0a8ca216e21c9fe1903eb79f4406a93e (diff) | |
download | docker-py-docker_client.tar.gz |
Rename Client -> DockerClientdocker_client
Replace references to old Client with APIClient
Moved contents of services.md to appropriate locations
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/api')
-rw-r--r-- | docker/api/build.py | 4 | ||||
-rw-r--r-- | docker/api/container.py | 2 | ||||
-rw-r--r-- | docker/api/swarm.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/docker/api/build.py b/docker/api/build.py index 297c9e0..7cf4e0f 100644 --- a/docker/api/build.py +++ b/docker/api/build.py @@ -32,7 +32,7 @@ class BuildApiMixin(object): Example: >>> from io import BytesIO - >>> from docker import Client + >>> from docker import APIClient >>> dockerfile = ''' ... # Shared Volume ... FROM busybox:buildroot-2014.02 @@ -40,7 +40,7 @@ class BuildApiMixin(object): ... CMD ["/bin/sh"] ... ''' >>> f = BytesIO(dockerfile.encode('utf-8')) - >>> cli = Client(base_url='tcp://127.0.0.1:2375') + >>> cli = APIClient(base_url='tcp://127.0.0.1:2375') >>> response = [line for line in cli.build( ... fileobj=f, rm=True, tag='yourname/volume' ... )] diff --git a/docker/api/container.py b/docker/api/container.py index 72c5852..9b5ce59 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -215,7 +215,7 @@ class ContainerApiMixin(object): """ if utils.version_gte(self._version, '1.20'): warnings.warn( - 'Client.copy() is deprecated for API version >= 1.20, ' + 'APIClient.copy() is deprecated for API version >= 1.20, ' 'please use get_archive() instead', DeprecationWarning ) diff --git a/docker/api/swarm.py b/docker/api/swarm.py index a4cb8dd..521076f 100644 --- a/docker/api/swarm.py +++ b/docker/api/swarm.py @@ -77,7 +77,7 @@ class SwarmApiMixin(object): force_new_cluster (bool): Force creating a new Swarm, even if already part of one. Default: False swarm_spec (dict): Configuration settings of the new Swarm. Use - ``Client.create_swarm_spec`` to generate a valid + ``APIClient.create_swarm_spec`` to generate a valid configuration. Default: None Returns: |