cattle_grid.manage
cattle_grid.manage
AccountManager
dataclass
Access for managing accounts from outside cattle_grid, e.g. by an extension
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account
|
Account
|
|
required |
Source code in cattle_grid/manage/account.py
account_information
account_information() -> list[ActorInformation]
Returns the actors belonging to the account
allowed_base_urls
async
for_name
async
staticmethod
for_name(name: str) -> AccountManager
Returns an AccountManager for a given name
Source code in cattle_grid/manage/account.py
for_name_and_password
async
staticmethod
for_name_and_password(
name: str, password: str
) -> AccountManager
Returns an AccountManager for the given name and password
Source code in cattle_grid/manage/account.py
ActorManager
dataclass
Access for managing actors from outside cattle_grid, e.g. by an extension
Parameters:
Name | Type | Description | Default |
---|---|---|---|
actor_id
|
str
|
The URI of the actor to manage |
required |
_actor_for_account
|
ActorForAccount | None
|
|
None
|
_actor
|
Actor | None
|
|
None
|
Source code in cattle_grid/manage/actor.py
add_to_group
async
add_to_group(group: str)