Azure Blob Storage backend for konserve.
Azure Blob Storage backend for konserve.
(build-service-client {:keys [service-client connection-string endpoint
account-name credential service-version]})Build a BlobServiceClient from a backend spec.
Supported inputs, in precedence order:
Build a BlobServiceClient from a backend spec. Supported inputs, in precedence order: - :service-client - :connection-string - :endpoint plus :credential - :account-name plus DefaultAzureCredential
(clear-client-cache!)Forget cached service clients. Azure SDK clients do not require closing.
Forget cached service clients. Azure SDK clients do not require closing.
(client-cache-size)Number of shared clients currently retained by the bounded cache.
Number of shared clients currently retained by the bounded cache.
(connect-store spec & {:keys [opts] :or {opts {:sync? true}}})Connect a DefaultStore to Azure Blob Storage. The multimethod API should be preferred by applications; this lower-level entry point retains the sibling backends' direct API.
Connect a DefaultStore to Azure Blob Storage. The multimethod API should be preferred by applications; this lower-level entry point retains the sibling backends' direct API.
(delete-objects! batch-client container-client names)Non-atomically delete the blobs names through Blob Batch, in requests of at
most max-batch-size sub-requests. Returns {:deleted #{names} :failed {name
diagnostic}} with every distinct name in exactly one category. A missing blob
(404 BlobNotFound) counts as deleted. Sub-requests failing with 500/503 are
resubmitted up to batch-sub-request-attempts times in all.
A batch request that fails outright throws when no name has an outcome yet. Otherwise the outcomes already known are kept, and the names of the failed request and of all requests not yet submitted are reported in :failed with the error, as their outcome is unknown.
Non-atomically delete the blobs `names` through Blob Batch, in requests of at
most `max-batch-size` sub-requests. Returns {:deleted #{names} :failed {name
diagnostic}} with every distinct name in exactly one category. A missing blob
(404 BlobNotFound) counts as deleted. Sub-requests failing with 500/503 are
resubmitted up to `batch-sub-request-attempts` times in all.
A batch request that fails outright throws when no name has an outcome yet.
Otherwise the outcomes already known are kept, and the names of the failed
request and of all requests not yet submitted are reported in :failed with
the error, as their outcome is unknown.(io-executor-stats)Current bounded I/O executor utilization, for monitoring and tests.
Current bounded I/O executor utilization, for monitoring and tests.
(read-object container-client name)Read a complete blob and return {:data byte-array :etag string}, or ::not-found. This low-level helper intentionally materializes its result; normal store reads use bounded ranges or streams instead.
Read a complete blob and return {:data byte-array :etag string}, or
::not-found. This low-level helper intentionally materializes its result;
normal store reads use bounded ranges or streams instead.(service-client spec)Return an injected client or a shared client for this endpoint and credential set.
Return an injected client or a shared client for this endpoint and credential set.
(shutdown-io-executor!)Stop the shared daemon I/O executor, primarily for application shutdown.
Stop the shared daemon I/O executor, primarily for application shutdown.
(write-object! container-client name bytes expected-etag)Create or overwrite a blob. When expected-etag is non-nil, use If-Match and return false on a CAS conflict; otherwise return true.
Create or overwrite a blob. When expected-etag is non-nil, use If-Match and return false on a CAS conflict; otherwise return true.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |