adk_artifact_gcs_http_transport (erlang_adk v0.10.0)
View SourceHardened 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
-spec delete(term(), binary(), adk_artifact_gcs_transport:context()) -> ok | {error, term()}.
-spec get(term(), binary(), adk_artifact_gcs_transport:context()) -> {ok, binary()} | {error, term()}.
-spec get_range(term(), binary(), non_neg_integer(), pos_integer(), adk_artifact_gcs_transport:context()) -> {ok, binary()} | {error, term()}.
-spec list(term(), binary(), binary() | undefined, pos_integer(), adk_artifact_gcs_transport:context()) -> {ok, adk_artifact_gcs_transport:page()} | {error, term()}.
-spec put_if_absent(term(), binary(), binary(), adk_artifact_gcs_transport:context()) -> ok | {error, term()}.