community.docker/plugins/module_utils
Felix Fontein 4d508b4c37
Vendor API connection code from Docker SDK for Python (#398)
* Vendor parts of the Docker SDK for Python

This is a combination of the latest git version
(a48a5a9647)
and the version before Python 2.7 support was removed
(650aad3a5f),
including some modifications to work with Ansible module_utils's
system (i.e. third-party imports are guarded, and errors are
reported during runtime through a new exception
MissingRequirementException).

* Create module_utils and plugin_utils for working with the vendored code.

The delete call cannot be called delete() since that method already exists from requests.

* Vendor more code from Docker SDK for Python.

* Adjust code from common module_utils.

* Add unit tests from Docker SDK for Python.

* Make test compile with Python 2.6, but skip them on Python 2.6.

* Skip test that requires a network server.

* Add changelog.

* Update changelogs/fragments/398-docker-api.yml

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>

* Minimum API version is 1.25.

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
2022-07-02 16:40:44 +02:00
..
_api Vendor API connection code from Docker SDK for Python (#398) 2022-07-02 16:40:44 +02:00
__init__.py Initial commit 2020-10-30 07:05:50 +01:00
common_api.py Vendor API connection code from Docker SDK for Python (#398) 2022-07-02 16:40:44 +02:00
common.py Revert "Revert "Remove deprecated functionality. (#363)"" 2022-07-02 14:28:31 +02:00
socket_handler.py Add docker_container_exec module (#105) 2021-04-06 23:53:17 +02:00
socket_helper.py Add docker_container_exec module (#105) 2021-04-06 23:53:17 +02:00
swarm.py Prepare for distutils.version being removed in Python 3.12 (#258) 2021-12-24 11:28:35 +01:00
util.py Revert "Revert "Remove deprecated functionality. (#363)"" 2022-07-02 14:28:31 +02:00
version.py Unvendor distutils.version (#271) 2022-07-02 15:06:58 +02:00