class documentation
class CheckRegistry: (source)
Undocumented
Method | __init__ |
Undocumented |
Method | get |
Undocumented |
Method | register |
Can be used as a function or a decorator. Register given function `f` labeled with given `tags`. The function should receive **kwargs and return list of Errors and Warnings. |
Method | run |
Run all registered checks and return list of Errors and Warnings. |
Method | tag |
Undocumented |
Method | tags |
Undocumented |
Instance Variable | deployment |
Undocumented |
Instance Variable | registered |
Undocumented |
Can be used as a function or a decorator. Register given function `f` labeled with given `tags`. The function should receive **kwargs and return list of Errors and Warnings. Example:: registry = CheckRegistry() @registry.register('mytag', 'anothertag') def my_check(app_configs, **kwargs): # ... perform checks and collect `errors` ... return errors # or registry.register(my_check, 'mytag', 'anothertag')