adk_artifact_sharded (erlang_adk v0.7.0)

View Source

Bounded exact-scope artifact adapter.

Every exact application/user/session scope is assigned one supervised adapter process. The default shard is adk_artifact_ets; selecting adk_artifact_fs derives a deterministic, path-safe subroot for each scope.

Summary

Functions

capabilities(Handle)

-spec capabilities(term()) -> {ok, map()} | {error, term()}.

delete(Handle, Scope, Name, Selector)

-spec delete(term(), adk_artifact_service:scope(), binary(), adk_artifact_service:delete_selector()) ->
                ok | {error, term()}.

delete(Handle, Scope, Name, Selector, CallOptions)

get(Handle, Scope, Name, Selector)

get(Handle, Scope, Name, Selector, CallOptions)

list(Handle, Scope)

-spec list(term(), adk_artifact_service:scope()) ->
              {ok, [adk_artifact_service:artifact_meta()]} | {error, term()}.

list_names(Handle, Scope, Options)

-spec list_names(term(), adk_artifact_service:scope(), map()) ->
                    {ok, adk_artifact_service:name_page()} | {error, term()}.

list_versions(Handle, Scope, Name, Options)

-spec list_versions(term(), adk_artifact_service:scope(), binary(), map()) ->
                       {ok, adk_artifact_service:version_page()} | {error, term()}.

put(Handle, Scope, Name, Data, Options)

-spec put(term(), adk_artifact_service:scope(), binary(), binary(), map()) ->
             {ok, adk_artifact_service:artifact_meta()} | {error, term()}.

put(Handle, Scope, Name, Data, Options, CallOptions)

start_link(Config)

-spec start_link(map()) -> {ok, adk_scope_shard_router:handle()} | {error, term()}.

status(Handle)

-spec status(term()) -> {ok, map()} | {error, term()}.

stop(Handle)

-spec stop(term()) -> ok | {error, term()}.