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 | 
| session | AsyncSession |  | 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(
    session: AsyncSession, 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(
    session: AsyncSession, 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 | 
|---|---|---|---|
| session | AsyncSession |  | required | 
| actor_id | str | The URI of the actor to manage | required |