Catalog
catalog
Credential catalog — discovery and lookup of credential groups.
The catalog aggregates :class:~axm_vault.models.CredentialGroup bundles
contributed by packages through the axm.credentials entry-point group.
Vault itself contributes no groups: an empty catalog is the nominal
state when no package has registered any.
Catalog
Bases: BaseModel
An in-memory index of credential groups, keyed by group id.
Source code in packages/axm-vault/src/axm_vault/catalog.py
all_specs()
Return every (group_id, spec) pair across all groups.
for_package(package)
group(gid)
Return the group identified by gid.
Raises:
| Type | Description |
|---|---|
KeyError
|
if no group with that id is registered. |
Source code in packages/axm-vault/src/axm_vault/catalog.py
| Python | |
|---|---|
load_catalog()
cached
Discover and index all axm.credentials groups.
Reads the axm.credentials entry-points, calls each (a callable
returning list[CredentialGroup]) and indexes the groups by id.
Returns an empty catalog when no entry-point is registered — the
nominal state for vault itself. Cached so discovery runs once.