-
-
Notifications
You must be signed in to change notification settings - Fork 73
Kathara.manager.docker.DockerPlugin
Tommaso Caiazzi edited this page Oct 2, 2023
·
10 revisions
- LINUX_PLUGIN_NAME
- VDE_PLUGIN_NAME
- HOSTTMP_KEY
- XTABLES_CONFIGURATION_KEY
- XTABLES_LOCK_PATH
Class responsible for interacting with Docker Plugins.
__init__(client: docker.client.DockerClient)check_and_download_plugin() → NoneCheck the presence of the Kathara Network Plugin and download it or upgrade it, if needed.
Returns: None
Raises:
-
DockerPluginError: If the Kathara Network Plugin is not found on remote Docker connection. -
DockerPluginError: If the Kathara Network Plugin is not enabled on remote Docker connection.
exec_by_version(fun_vde: Callable, fun_bridge: Callable) → AnyExecutes the callback depending on the enabled plugin version.
Returns:
-
Any: The result of the callback.
is_bridge() → boolCheck if the current enabled plugin is the Linux bridge version.
Returns:
-
bool: True if the running plugin is the Linux bridge version.
is_vde() → boolCheck if the current enabled plugin is the VDE version.
Returns:
-
bool: True if the running plugin is the VDE version.
plugin_pid() → intGet the plugin process PID from the plugin state file.
Returns:
-
int: The plugin process PID.
plugin_store_path() → strGet the plugin storage path (VDE only) from the plugin settings.
Returns:
-
str: The plugin storage path.
Raises:
-
FileNotFoundError: If the storage path mount point cannot be found.
This file was automatically generated via lazydocs.
Website: kathara.org
Contact us: [email protected]