flayer.core.config¶
flayer.core.config ¶
Strict TOML desired-state loading without provider defaults or secret material.
ConfigError ¶
Bases: ContractError
Desired configuration cannot be safely parsed or read.
SecretReference
dataclass
¶
SecretReference(name: str, source: str, reference: str)
DesiredResource
dataclass
¶
DesiredResource(logical_id: str, kind: str, name: str)
DesiredConfig
dataclass
¶
DesiredConfig(identity: StackIdentity, profile: str, resources: tuple[DesiredResource, ...] = (), credentials: tuple[SecretReference, ...] = (), schema_version: int = SCHEMA_VERSION)
Immutable, validated desired intent without observed identifiers or credentials.
ParseConfig ¶
ParseConfig(data: Mapping[str, object]) -> DesiredConfig
Validate decoded TOML; unknown fields and schema versions always fail closed.
源代码位于: installed/flayer/core/config.py
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
LoadConfig ¶
LoadConfig(path: str | Path) -> DesiredConfig
Load an explicit TOML path with no implicit local defaults or environment overrides.
源代码位于: installed/flayer/core/config.py
188 189 190 191 192 193 194 195 196 197 198 | |