adk_artifact_gcs_http_transport (erlang_adk v0.10.0)

View Source

Hardened Google Cloud Storage JSON API transport.

The endpoint, HTTPS scheme, host allow-list, redirect policy and headers are fixed here. Callers supply only a validated bucket/project, opaque credential handle, object name and bounded payload. There is deliberately no endpoint, URL or arbitrary-header option.

Summary

Functions

delete(Handle, Object, Context)

-spec delete(term(), binary(), adk_artifact_gcs_transport:context()) -> ok | {error, term()}.

get(Handle, Object, Context)

-spec get(term(), binary(), adk_artifact_gcs_transport:context()) -> {ok, binary()} | {error, term()}.

get_range(Handle, Object, Offset, Length, Context)

-spec get_range(term(),
                binary(),
                non_neg_integer(),
                pos_integer(),
                adk_artifact_gcs_transport:context()) ->
                   {ok, binary()} | {error, term()}.

list(Handle, Prefix, Cursor, Limit, Context)

-spec list(term(), binary(), binary() | undefined, pos_integer(), adk_artifact_gcs_transport:context()) ->
              {ok, adk_artifact_gcs_transport:page()} | {error, term()}.

put_if_absent(Handle, Object, Data, Context)

-spec put_if_absent(term(), binary(), binary(), adk_artifact_gcs_transport:context()) ->
                       ok | {error, term()}.