dissect.target.plugins.os.unix.esxi.esxconf

Module Contents

Classes

EsxConfPlugin

Plugin to interact with esxconf configuration.

Functions

class dissect.target.plugins.os.unix.esxi.esxconf.EsxConfPlugin(target: dissect.target.target.Target)

Bases: dissect.target.plugin.Plugin

Plugin to interact with esxconf configuration.

__namespace__ = 'esxconf'

Defines the plugin namespace.

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 an UnsupportedPluginError.

Raises:

UnsupportedPluginError – If the plugin could not be loaded.

get(path: str) str | int | bool | _EsxConf | None

Get esxconf value at the specified path.

__call__(path: str, json: bool) None

Dump esxconf value at the specified path.

dissect.target.plugins.os.unix.esxi.esxconf.parse_esx_conf(fh: TextIO) _EsxConf