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.Target)¶
Bases:
dissect.target.plugin.PluginEnvironment file plugin.
- check_compatible() None¶
Perform a compatibility check with the target.
This function should return
Noneif 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') collections.abc.Iterator[EnvironmentFileRecord]¶
Yield environment variables found in
.envfiles at the provided path.