amoorion.methods.accounts_method¶
Accounts: which platforms have their secrets.
Classes
|
Whether a platform is ready: its missing secrets by name, never by value. |
|
Tells which platforms can work right now. |
- class amoorion.methods.accounts_method.AccountStatus(*, platform, ready, missing=[], error=None)[source]¶
Bases:
ModelWhether a platform is ready: its missing secrets by name, never by value.
- Parameters:
platform (str)
ready (bool)
missing (list[str])
error (str | None)
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class amoorion.methods.accounts_method.Accounts(vault=None, view=None, inbox=None, dataset=None)[source]¶
Bases:
MethodTells which platforms can work right now. Asks the vault, not the platforms.
- run(params)[source]¶
Try every secret of every plugin; what can’t be read counts as missing.
- Parameters:
params (Model)
- Return type:
list[AccountStatus]