okflint.vault module
OKF vault manifest loading and validation.
- class okflint.vault.BundleEntry(path, manifest_path)[source]
Bases:
objectA bundle entry resolved from the vault manifest.
- class okflint.vault.VaultConfig(okf_vault_version, name, bundles)[source]
Bases:
objectLoaded and validated vault configuration.
- bundles: list[BundleEntry]
- okflint.vault.load_vault(path)[source]
Load and validate an okf-vault.json file.
Resolution rules: -
pathis absolute or resolved relative to the vault JSON file’s parent. -manifestis resolved relative to the bundlepath(not the vault file). - Ifmanifestis absent in an entry,okf-base.yamlis used as default.- Parameters:
path (
Path) – Path to the okf-vault.json file.- Return type:
- Returns:
Validated VaultConfig.
- Raises:
VaultError – If the file is unreadable, invalid JSON, or violates constraints.