Module spin_sdk.wit.imports.wasi_config_store
Global variables
var Error
-
An error type that encapsulates the different errors that can occur fetching configuration values.
Functions
def get(key: str) ‑> str | None
-
Expand source code
def get(key: str) -> Optional[str]: """ Gets a configuration value of type `string` associated with the `key`. The value is returned as an `option<string>`. If the key is not found, `Ok(none)` is returned. If an error occurs, an `Err(error)` is returned. Raises: `spin_sdk.wit.types.Err(spin_sdk.wit.imports.wasi_config_store.Error)` """ raise NotImplementedError
def get_all() ‑> List[Tuple[str, str]]
-
Expand source code
def get_all() -> List[Tuple[str, str]]: """ Gets a list of configuration key-value pairs of type `string`. If an error occurs, an `Err(error)` is returned. Raises: `spin_sdk.wit.types.Err(spin_sdk.wit.imports.wasi_config_store.Error)` """ raise NotImplementedError
Classes
class Error_Io (value: str)
-
Expand source code
@dataclass class Error_Io: value: str
Error_Io(value: str)
Instance variables
var value : str
class Error_Upstream (value: str)
-
Expand source code
@dataclass class Error_Upstream: value: str
Error_Upstream(value: str)
Instance variables
var value : str