airflow.secrets.local_filesystem¶
与从本地文件检索连接和变量相关的对象。
属性¶
类¶
从本地文件检索 Connection 对象和 Variable。 |
函数¶
返回 |
|
|
从文本文件加载变量。 |
|
从文本文件加载连接。 |
模块内容¶
- airflow.secrets.local_filesystem.get_connection_parameter_names()[source]¶
返回
airflow.models.connection.Connection
构造函数参数。
- airflow.secrets.local_filesystem.load_variables(file_path)[source]¶
从文本文件加载变量。
支持
JSON
, YAML 和.env
文件。- 参数:
file_path (str) – 将被处理的文件的位置。
- airflow.secrets.local_filesystem.load_connections_dict(file_path)[source]¶
从文本文件加载连接。
支持
JSON
, YAML 和.env
文件。
- 类 airflow.secrets.local_filesystem.LocalFilesystemBackend(variables_file_path=None, connections_file_path=None)[source]¶
基类:
airflow.secrets.base_secrets.BaseSecretsBackend
,airflow.utils.log.logging_mixin.LoggingMixin
从本地文件检索 Connection 对象和 Variable。
支持
JSON
, YAML 和.env
文件。- 参数: