Rtos API example
HostTestRegistry Class Reference
Public Member Functions | |
def | register_plugin |
def | call_plugin |
def | get_plugin_caps |
def | load_plugin |
def | __str__ |
Detailed Description
Simple class used to register and store host test plugins for further usage
Definition at line 18 of file host_test_registry.py.
Member Function Documentation
def __str__ | ( | self ) |
User friendly printing method to show hooked plugins
Definition at line 74 of file host_test_registry.py.
def call_plugin | ( | self, | |
type, | |||
capability, | |||
args, | |||
kwargs | |||
) |
Execute plugin functionality respectively to its purpose
Definition at line 48 of file host_test_registry.py.
def get_plugin_caps | ( | self, | |
type | |||
) |
Returns list of all capabilities for plugin family with the same type. If there are no capabilities empty list is returned
Definition at line 57 of file host_test_registry.py.
def load_plugin | ( | self, | |
name | |||
) |
Used to load module from
Definition at line 68 of file host_test_registry.py.
def register_plugin | ( | self, | |
plugin | |||
) |
Registers and stores plugin inside registry for further use. Method also calls plugin's setup() function to configure plugin if needed. Note: Different groups of plugins may demand different extra parameter. Plugins should be at least for one type of plugin configured with the same parameters because we do not know which of them will actually use particular parameter.
Definition at line 28 of file host_test_registry.py.
Generated on Sun Jul 17 2022 08:25:44 by 1.7.2