| :py:mod:`airflow.providers.docker.hooks.docker` |
| =============================================== |
| |
| .. py:module:: airflow.providers.docker.hooks.docker |
| |
| |
| Module Contents |
| --------------- |
| |
| Classes |
| ~~~~~~~ |
| |
| .. autoapisummary:: |
| |
| airflow.providers.docker.hooks.docker.DockerHook |
| |
| |
| |
| |
| .. py:class:: DockerHook(docker_conn_id = default_conn_name, base_url = None, version = None, tls = None, timeout = DEFAULT_TIMEOUT_SECONDS) |
| |
| Bases: :py:obj:`airflow.hooks.base.BaseHook`, :py:obj:`airflow.utils.log.logging_mixin.LoggingMixin` |
| |
| Interact with a Docker Daemon or Registry. |
| |
| :param docker_conn_id: The :ref:`Docker connection id <howto/connection:docker>` |
| where credentials and extra configuration are stored |
| |
| .. py:attribute:: conn_name_attr |
| :annotation: = docker_conn_id |
| |
| |
| |
| .. py:attribute:: default_conn_name |
| :annotation: = docker_default |
| |
| |
| |
| .. py:attribute:: conn_type |
| :annotation: = docker |
| |
| |
| |
| .. py:attribute:: hook_name |
| :annotation: = Docker |
| |
| |
| |
| .. py:method:: get_ui_field_behaviour() |
| :staticmethod: |
| |
| Returns custom field behaviour |
| |
| |
| .. py:method:: get_conn(self) |
| |
| Returns connection for the hook. |
| |
| |
| |