dissect.target.plugins.apps.other.env
¶
Module Contents¶
Classes¶
Environment file plugin. |
Attributes¶
- dissect.target.plugins.apps.other.env.EnvironmentFileRecord¶
- class dissect.target.plugins.apps.other.env.EnvironmentFilePlugin(target: dissect.target.Target)¶
Bases:
dissect.target.plugin.Plugin
Environment file plugin.
- check_compatible() None ¶
Perform a compatibility check with the target.
This function should return
None
if the plugin is compatible with the current target (self.target
). For example, check if a certain file exists. Otherwise it should raise anUnsupportedPluginError
.- Raises:
UnsupportedPluginError – If the plugin could not be loaded.
- envfile(env_path: str, extension: str = 'env') Iterator[EnvironmentFileRecord] ¶
Yield environment variables found in
.env
files at the provided path.