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

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: Err(Error)

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: Err(Error)

Classes

class Error_Io (value: str)

Error_Io(value: str)

Expand source code
@dataclass
class Error_Io:
    value: str

Class variables

var value : str
class Error_Upstream (value: str)

Error_Upstream(value: str)

Expand source code
@dataclass
class Error_Upstream:
    value: str

Class variables

var value : str