yera.creds.backends.memory
In-memory secret-store backend.
Symbols
InMemorySecretStore
SecretStoreStore opaque secrets in process memory.
Methods
InMemorySecretStore.get
get(
identity: SecretIdentity,
) → SecretValueReturn one stored secret.
Parameters
Durable identity of the requested secret.
Returns
The opaque stored value.
Raises
If the secret does not exist.
InMemorySecretStore.set
set(
identity: SecretIdentity,
value: SecretValue,
) → SecretInfoCreate or replace one secret.
Parameters
Durable identity of the secret.
Opaque serialized value to store.
Returns
Non-sensitive information about the stored secret.
InMemorySecretStore.compare_and_set
compare_and_set(
identity: SecretIdentity,
expected_updated_at: datetime | None,
value: SecretValue,
) → SecretInfoConditionally create or replace one secret.
Parameters
Durable identity of the secret.
Expected update time, or None when the
secret is expected not to exist.
Opaque serialized replacement value.
Returns
Non-sensitive information about the stored secret.
Raises
If current state differs from the expectation.
InMemorySecretStore.delete
delete(
identity: SecretIdentity,
) → NoneDelete one secret.
Parameters
Durable identity of the secret.
Raises
If the secret does not exist.
InMemorySecretStore.exists
exists(
identity: SecretIdentity,
) → boolReturn whether one secret exists.
Parameters
Durable identity to test.
Returns
Whether the secret exists.
InMemorySecretStore.list_info
list_info(
namespace: str | None = None,
owner_id: str | None = None,
) → tuple[SecretInfo, ...]List non-sensitive information about matching secrets.
Parameters
Optional namespace filter.
Optional owning identifier filter.
Returns
Matching secret information in stable identity order.