-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<html><head><meta http-equiv="refresh" content="0; url=../security.html"/></head></html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 6a53893bdd2a1c627a99fcdfd209680c | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
:py:mod:`airflow.providers.docker.decorators.docker` | ||
==================================================== | ||
|
||
.. py:module:: airflow.providers.docker.decorators.docker | ||
Module Contents | ||
--------------- | ||
|
||
|
||
Functions | ||
~~~~~~~~~ | ||
|
||
.. autoapisummary:: | ||
|
||
airflow.providers.docker.decorators.docker.docker_task | ||
|
||
|
||
|
||
.. py:function:: docker_task(python_callable = None, multiple_outputs = None, **kwargs) | ||
Python operator decorator; wraps a function into an Airflow operator. | ||
|
||
Also accepts any argument that DockerOperator will via ``kwargs``. Can be reused in a single DAG. | ||
|
||
:param python_callable: Function to decorate | ||
:param multiple_outputs: If set, function return value will be unrolled to multiple XCom values. | ||
Dict will unroll to XCom values with keys as XCom keys. Defaults to False. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:py:mod:`airflow.providers.docker.decorators` | ||
============================================= | ||
|
||
.. py:module:: airflow.providers.docker.decorators | ||
Submodules | ||
---------- | ||
.. toctree:: | ||
:titlesonly: | ||
:maxdepth: 1 | ||
|
||
docker/index.rst | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
:py:mod:`airflow.providers.docker.exceptions` | ||
============================================= | ||
|
||
.. py:module:: airflow.providers.docker.exceptions | ||
.. autoapi-nested-parse:: | ||
|
||
Exceptions used by Docker provider. | ||
|
||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
.. py:exception:: DockerContainerFailedException(message = None, logs = None) | ||
Bases: :py:obj:`airflow.exceptions.AirflowException` | ||
|
||
Raised when a Docker container returns an error. | ||
|
||
:param logs: The log output of the failed Docker container | ||
|
||
|
||
.. py:exception:: DockerContainerFailedSkipException(message = None, logs = None) | ||
Bases: :py:obj:`airflow.exceptions.AirflowSkipException` | ||
|
||
Raised when a Docker container returns an error and task should be skipped. | ||
|
||
:param logs: The log output of the failed Docker container | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
: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` | ||
|
||
Interact with a Docker Daemon and Container Registry. | ||
|
||
This class provide a thin wrapper around the ``docker.APIClient``. | ||
|
||
.. seealso:: | ||
- :ref:`Docker Connection <howto/connection:docker>` | ||
- `Docker SDK: Low-level API <https://docker-py.readthedocs.io/en/stable/api.html?low-level-api>`_ | ||
|
||
:param docker_conn_id: :ref:`Docker connection id <howto/connection:docker>` where stored credentials | ||
to Docker Registry. If set to ``None`` or empty then hook does not login to Container Registry. | ||
:param base_url: URL to the Docker server. | ||
:param version: The version of the API to use. Use ``auto`` or ``None`` for automatically detect | ||
the server's version. | ||
:param tls: Is connection required TLS, for enable pass ``True`` for use with default options, | ||
or pass a `docker.tls.TLSConfig` object to use custom configurations. | ||
:param timeout: Default timeout for API calls, in seconds. | ||
|
||
.. py:property:: client_created | ||
:type: bool | ||
|
||
Is api_client created or not. | ||
|
||
|
||
.. py:attribute:: conn_name_attr | ||
:value: 'docker_conn_id' | ||
|
||
|
||
|
||
.. py:attribute:: default_conn_name | ||
:value: 'docker_default' | ||
|
||
|
||
|
||
.. py:attribute:: conn_type | ||
:value: 'docker' | ||
|
||
|
||
|
||
.. py:attribute:: hook_name | ||
:value: 'Docker' | ||
|
||
|
||
|
||
.. py:method:: construct_tls_config(ca_cert = None, client_cert = None, client_key = None, verify = True, assert_hostname = None, ssl_version = None) | ||
:staticmethod: | ||
|
||
Construct TLSConfig object from parts. | ||
|
||
:param ca_cert: Path to a PEM-encoded CA (Certificate Authority) certificate file. | ||
:param client_cert: Path to PEM-encoded certificate file. | ||
:param client_key: Path to PEM-encoded key file. | ||
:param verify: Set ``True`` to verify the validity of the provided certificate. | ||
:param assert_hostname: Hostname to match against the docker server certificate | ||
or ``False`` to disable the check. | ||
:param ssl_version: Version of SSL to use when communicating with docker daemon. | ||
|
||
|
||
.. py:method:: api_client() | ||
Create connection to docker host and return ``docker.APIClient`` (cached). | ||
|
||
|
||
.. py:method:: get_conn() | ||
Create connection to docker host and return ``docker.APIClient`` (cached). | ||
|
||
|
||
.. py:method:: get_connection_form_widgets() | ||
:classmethod: | ||
|
||
Return connection form widgets. | ||
|
||
|
||
.. py:method:: get_ui_field_behaviour() | ||
:classmethod: | ||
|
||
Return custom field behaviour. | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:py:mod:`airflow.providers.docker.hooks` | ||
======================================== | ||
|
||
.. py:module:: airflow.providers.docker.hooks | ||
Submodules | ||
---------- | ||
.. toctree:: | ||
:titlesonly: | ||
:maxdepth: 1 | ||
|
||
docker/index.rst | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
:py:mod:`airflow.providers.docker` | ||
================================== | ||
|
||
.. py:module:: airflow.providers.docker | ||
Subpackages | ||
----------- | ||
.. toctree:: | ||
:titlesonly: | ||
:maxdepth: 3 | ||
|
||
decorators/index.rst | ||
hooks/index.rst | ||
operators/index.rst | ||
|
||
|
||
Submodules | ||
---------- | ||
.. toctree:: | ||
:titlesonly: | ||
:maxdepth: 1 | ||
|
||
exceptions/index.rst | ||
|
||
|
||
Package Contents | ||
---------------- | ||
|
||
.. py:data:: __version__ | ||
:value: '3.9.0' | ||
|
||
|
||
|