LemonCore. PolicyStore
(lemon_core v0.1.0)
View Source
Typed wrapper for policy domain storage.
Provides scoped access to agent, channel, session, and runtime policies
stored in LemonCore.Store.
Summary
Functions
Deletes the runtime policy.
Deletes the policy for the given session.
Fetches the policy for the given agent, or nil if not set.
Fetches the policy for the given channel, or nil if not set.
Fetches the runtime policy, or nil if not set.
Fetches the policy for the given session, or nil if not set.
Stores a policy for the given agent.
Stores a policy for the given channel.
Stores the runtime policy.
Stores a policy for the given session.
Functions
@spec delete_runtime() :: :ok
Deletes the runtime policy.
@spec delete_session(binary()) :: :ok
Deletes the policy for the given session.
Fetches the policy for the given agent, or nil if not set.
Fetches the policy for the given channel, or nil if not set.
@spec get_runtime() :: map() | nil
Fetches the runtime policy, or nil if not set.
Fetches the policy for the given session, or nil if not set.
Stores a policy for the given agent.
Stores a policy for the given channel.
Stores the runtime policy.
Stores a policy for the given session.