airflow.providers.samba.hooks.samba¶
Module Contents¶
-
class
airflow.providers.samba.hooks.samba.SambaHook(samba_conn_id: str = default_conn_name)[source]¶ Bases:
airflow.hooks.base.BaseHookAllows for interaction with an samba server.
-
get_conn(self)[source]¶ Return a samba client object.
You can provide optional parameters in the extra fields of your connection.
Below is an inexhaustive list of these parameters:
- logdir
Base directory name for log/debug files.
- kerberos
Try to authenticate with kerberos.
- workgroup
Set the SMB domain of the username.
- netbios_name
This option allows you to override the NetBIOS name that Samba uses for itself.
For additional details, see smbclient.SambaClient.
-