Liking cljdoc? Tell your friends :D

clj-gcloud.storage


->blob-idclj

(->blob-id gs-uri-or-blob-id)
(->blob-id bucket name)
source

->blob-list-optionsclj

(->blob-list-options options)
source

->input-streamclj

(->input-stream channel)
source

->metadataclj

(->metadata m)
source

->output-streamclj

(->output-stream channel)
source

blob-infoclj

(blob-info blob-id options)
source

bucket-infoclj

(bucket-info bucket-name options)
source

copyclj

(copy storage source-blob-id target-blob-id)
(copy storage source-blob-id target-blob-id options)
source

copy-blobclj

(copy-blob source-blob target-blob-id)
source

copy-file-to-storageclj

(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
sourceraw docstring

create-blobclj

(create-blob storage blob-info)
source

create-blob-writerclj

(create-blob-writer storage blob-info)
source

create-bucketclj

(create-bucket storage bucket-info)
source

delete-blobclj

(delete-blob storage blob-id)
source

delete-bucketclj

(delete-bucket storage bucket-name)
source

download-file-from-storageclj

(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')
sourceraw docstring

file->streamclj

(file->stream local-path output-stream)

Writes an local file to stream.

Writes an local file to stream.
sourceraw docstring

get-blobclj

(get-blob storage blob-id)
source

get-bucketclj

(get-bucket storage bucket-name)
source

get-metadataclj

(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
sourceraw docstring

get-or-create-bucketclj

(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.
sourceraw docstring

initclj

(init)
(init options)
source

list-blobsclj

(list-blobs storage bucket-name options)
source

lsclj

(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])
sourceraw docstring

read-channelclj

(read-channel blob)
source

read-gs-uriclj

(read-gs-uri gs-uri)
source

set-metadata!clj

(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")
sourceraw docstring

stream->fileclj

(stream->file input-stream local-path)

Writes an input stream to disk.

Writes an input stream to disk.
sourceraw docstring

write-channelclj

(write-channel blob)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close