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
| Python | |
|---|---|
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | |
all_specs()
Return every (group_id, spec) pair across all groups.
auth_dependencies()
Return every authentication dependency across all groups.
Source code in packages/axm-vault/src/axm_vault/catalog.py
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 | |
|---|---|
groups()
CatalogRejection
Bases: BaseModel
A credential entry point excluded from catalog discovery.
Source code in packages/axm-vault/src/axm_vault/catalog.py
groups_from_provider(entry_point, provider)
Validate one credential provider without leaking contribution failures.
Source code in packages/axm-vault/src/axm_vault/catalog.py
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.