(copy storage source-blob-id target-blob-id)
(copy storage source-blob-id target-blob-id options)
(copy-file-to-storage storage src dest-uri)
(copy-file-to-storage storage src dest-gs-uri & options)
Convenience function for copying a local file to a blob to storage. By default the type is JSON encoded in UTF-8
Convenience function for copying a local file to a blob to storage. By default the type is JSON encoded in UTF-8
(download-file-from-storage storage source-gs-uri dest-local-path & _options)
Downloads a storage file to a local one. Usage : (download-file-from-storage storage-client 'gs://mybucket/myfolder/.../myfile' 'mylocalfile')
Downloads a storage file to a local one. Usage : (download-file-from-storage storage-client 'gs://mybucket/myfolder/.../myfile' 'mylocalfile')
(file->stream local-path output-stream)
Writes an local file to stream.
Writes an local file to stream.
(get-metadata storage
source-gs-uri
&
{:keys [keywordize?] :or {keywordize? false}})
Retrieve the custom metadata associated to the current google storage blob.
Options: :keywordize?
(default: false
) - keywordize return
Retrieve the custom metadata associated to the current google storage blob. Options: `:keywordize?` (default: `false`) - keywordize return
(get-or-create-bucket storage info)
Fetches or creates a bucket if it doesn't exist.
Fetches or creates a bucket if it doesn't exist.
(ls storage gs-uri)
(ls storage bucket path)
(ls storage bucket path options)
List files. Usage: (ls storage gs-uri [options]) (ls storage bucket path [options])
List files. Usage: (ls storage gs-uri [options]) (ls storage bucket path [options])
(set-metadata! storage source-gs-uri)
(set-metadata! storage source-gs-uri metadata)
Set custom metadata to an existing blob in a bucket
CAUTION: If no metadata
arg specified, the field will be nulled and all
the custom metadata will be removed from the Blob
Usage:
;; Clean Metadata (set-metadata! storage-client "gs://foo/bar/file.clj")
;; Attach metadata (set-metadata! storage-client "gs://foo/bar/file.clj" {:instance "instance-foobar-1-cloud-vm")
Set custom metadata to an existing blob in a bucket CAUTION: If no `metadata` arg specified, the field will be nulled and all the custom metadata will be removed from the Blob Usage: ;; Clean Metadata (set-metadata! storage-client "gs://foo/bar/file.clj") ;; Attach metadata (set-metadata! storage-client "gs://foo/bar/file.clj" {:instance "instance-foobar-1-cloud-vm")
(stream->file input-stream local-path)
Writes an input stream to disk.
Writes an input stream to disk.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close