adk_credential_store_ets (erlang_adk v0.7.0)

View Source

Owner-private ETS credential store.

The ETS table identifier is held by this gen_server and the table is private, so raw credentials cannot be read by other processes. Public operations always require the original principal and provider scope.

Summary

Types

server/0

-type server() :: gen_server:server_ref().

Functions

child_spec(Opts)

-spec child_spec(map()) -> supervisor:child_spec().

code_change(OldVersion, State, Extra)

compare_and_swap(Server, Principal, Provider, Ref, Expected, Replacement)

Atomically replace a credential while keeping the same opaque reference. The gen_server owns the private ETS table, so the comparison and replacement are serialized with fetch/delete/put operations.

delete(Server, Principal, Provider, Ref)

fetch(Server, Principal, Provider, Ref)

format_status(Status)

handle_call(Request, From, State)

handle_cast(Request, State)

handle_info(Info, State)

init(Opts)

put(Server, Principal, Provider, Credential)

start_link()

-spec start_link() -> gen_server:start_ret().

start_link(Opts)

-spec start_link(map()) -> gen_server:start_ret().

terminate(Reason, State)