(cloud-storage-client {:keys [client project-id host]})Create a GCS client. Supports :host for emulator endpoint (e.g., 'http://localhost:4443').
Create a GCS client. Supports :host for emulator endpoint (e.g., 'http://localhost:4443').
(copy-blob client bucket store-path from-blob-key to-blob-key)Copy blob from one key to another. Returns nil if source doesn't exist.
Copy blob from one key to another. Returns nil if source doesn't exist.
(delete-blob client bucket store-path blob-key)Delete blob. Returns true if deleted, false if not found.
Delete blob. Returns true if deleted, false if not found.
(read-blob-with-generation client blob-id)Read blob and return map with :data and :generation, or nil if not found. Returns nil if blob doesn't exist or was updated during read (stale generation).
Read blob and return map with :data and :generation, or nil if not found. Returns nil if blob doesn't exist or was updated during read (stale generation).
(store-exists? spec & {:keys [opts]})Check if a konserve store exists at the given spec.
Check if a konserve store exists at the given spec.
(write-blob-conditional client blob-id bytes expected-generation)Write blob with generation match precondition. Returns true on success, false on conflict. GCS returns HTTP 412 (Precondition Failed) when generation doesn't match.
Write blob with generation match precondition. Returns true on success, false on conflict. GCS returns HTTP 412 (Precondition Failed) when generation doesn't match.
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 |