lsquic
lsquic
¤
Classes:
Name | Description |
---|---|
LsquicServiceManager |
|
panther.plugins.services.iut.quic.lsquic.lsquic.LsquicServiceManager
¤
LsquicServiceManager(service_config_to_test: LsquicConfig, service_type: str, protocol: ProtocolConfig, implementation_name: str)
Bases: IImplementationManager
Methods:
Name | Description |
---|---|
generate_compile_commands |
This method generates and returns a list of compile commands. |
generate_deployment_commands |
Generates deployment commands and collects volume mappings based on service parameters. |
generate_post_compile_commands |
Generate a list of post-compile commands. |
generate_post_run_commands |
Generates post-run commands. |
generate_pre_compile_commands |
Generates a list of shell commands to be executed before compilation. |
generate_pre_run_commands |
Generates a list of pre-run commands. |
generate_run_command |
Generates the run command. |
initialize_commands |
Initializes and generates a dictionary of commands to be executed at different stages |
prepare |
Prepare the service manager for use. |
Source code in panther/plugins/services/iut/quic/lsquic/lsquic.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
generate_compile_commands
¤
generate_compile_commands() -> list[str]
This method generates and returns a list of compile commands. Generates compile commands.
Returns:
Name | Type | Description |
---|---|---|
list |
list[str]
|
An empty list representing the compile commands. |
Source code in panther/plugins/services/services_interface.py
250 251 252 253 254 255 256 257 258 |
|
generate_deployment_commands
¤
generate_deployment_commands() -> str
Generates deployment commands and collects volume mappings based on service parameters.
:param service_params: Parameters specific to the service. :param environment: The environment in which the services are being deployed. :return: A dictionary with service name as key and a dictionary containing command and volumes.
Source code in panther/plugins/services/iut/quic/lsquic/lsquic.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
generate_post_compile_commands
¤
generate_post_compile_commands() -> list[str]
Generate a list of post-compile commands. This method returns an empty list of strings representing commands to be executed after the compilation process. Returns: List[str]: An empty list of post-compile commands.
Source code in panther/plugins/services/services_interface.py
260 261 262 263 264 265 266 267 268 269 |
|
generate_post_run_commands
¤
generate_post_run_commands()
Generates post-run commands.
Source code in panther/plugins/services/iut/quic/lsquic/lsquic.py
52 53 54 55 56 57 58 |
|
generate_pre_compile_commands
¤
generate_pre_compile_commands() -> list[str]
Generates a list of shell commands to be executed before compilation. Returns: list: A list of strings, each representing a shell command.
Source code in panther/plugins/services/services_interface.py
236 237 238 239 240 241 242 243 244 245 246 247 248 |
|
generate_pre_run_commands
¤
generate_pre_run_commands() -> list[str]
Generates a list of pre-run commands. This method returns an empty list of strings, which can be overridden by subclasses to provide specific pre-run commands required for their execution context. Returns: List[str]: An empty list of strings representing pre-run commands.
Source code in panther/plugins/services/services_interface.py
271 272 273 274 275 276 277 278 279 280 |
|
generate_run_command
¤
generate_run_command()
Generates the run command.
Source code in panther/plugins/services/iut/quic/lsquic/lsquic.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
initialize_commands
¤
initialize_commands() -> dict
Initializes and generates a dictionary of commands to be executed at different stages of the process (pre-compile, compile, post-compile, pre-run, run, post-run).
The dictionary keys are
- "pre_compile_cmds": Commands to be executed before compilation.
- "compile_cmds": Commands to be executed during compilation.
- "post_compile_cmds": Commands to be executed after compilation.
- "pre_run_cmds": Commands to be executed before running.
- "run_cmd": Command to be executed to run the main process.
- "post_run_cmds": Commands to be executed after running.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A dictionary containing the commands for each stage. |
Source code in panther/plugins/services/services_interface.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
prepare
¤
prepare(plugin_loader: PluginLoader | None = None)
Prepare the service manager for use.
Source code in panther/plugins/services/iut/quic/lsquic/lsquic.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|