maaspower.webhook
#
webhook.py#
Use Flask to implement a web server that provides web hooks based on the provided configuration
Members
Accept webhooks at /maaspower/<devicename>/<command> |
|
Test root endpoint |
|
Setup config for the webserver |
|
Launch the webserver |
- maaspower.webhook.command(devicename: str, command: str)[source]#
Accept webhooks at /maaspower/<devicename>/<command>
- maaspower.webhook.load_web_hook(c: MaasConfig)[source]#
Setup config for the webserver
- maaspower.webhook.run_web_hook(c: MaasConfig)[source]#
Launch the webserver