Liking cljdoc? Tell your friends :D

gstorage.client

The Client namespace retains the client protocol, used to abstract possible client implementations

The Client namespace retains the client protocol, used to abstract possible
client implementations
raw docstring

assert-paramcljmacro

(assert-param expected-condition error-message)

Clientcljprotocol

Client depicts all functionality of a client. It is used to abstract local and remote clients

Client depicts all functionality of a client. It is used to abstract local
and remote clients

get-bucketclj

(get-bucket this bucket-name)

If a bucket with the provided bucket-name exists, returns a structure representing a Bucket

If a bucket with the provided `bucket-name` exists, returns a structure
representing a Bucket

get-objectclj

(get-object this bucket object-name)

Returns a BucketObject structure representing an object present in a bucket, named object-name. Bucket may be a String or Bucket structure.

Returns a BucketObject structure representing an object present in a
`bucket`, named `object-name`.
Bucket may be a String or Bucket structure.

make-bucketclj

(make-bucket this bucket-name)
(make-bucket this bucket-name metadata)

Creates a new bucket with a given name and optional metadata. Metadata, when provided, must be map that may contain the following keys:

:predefined-acl :predefined-default-object-acl

Keys are automatically converted to-from kebab-case in order to maintain code style conventions and consistency. Further information about options that may be passed as metadata can be found in the following URL: https://cloud.google.com/storage/docs/json_api/v1/buckets/insert

Creates a new bucket with a given name and optional metadata.
Metadata, when provided, must be map that may contain the following
keys:

:predefined-acl
:predefined-default-object-acl

Keys are automatically converted to-from kebab-case in order to maintain
code style conventions and consistency.
Further information about options that may be passed as metadata can be
found in the following URL:
https://cloud.google.com/storage/docs/json_api/v1/buckets/insert

put-objectclj

(put-object this bucket file)
(put-object this bucket object-name file)
(put-object this bucket object-name file metadata)

Uploads a given object to a bucket. In its most simple form, this function assumes the uploaded object will have the same name of the provided file object. An object-name may be optionally provided, which will be used as the object name in the bucket. Furthermore, a metadata map may also be included with the following keys:

:acl :cache-control :content-disposition :content-encoding :content-language :content-type :crc32c :event-based-hold :md5-hash :metadata :storage-class :temporary-hold

bucket may be a String or Bucket structure.

Further information about options that may be passed as metadata can be found in the following URL: https://cloud.google.com/storage/docs/json_api/v1/objects/insert

Uploads a given object to a `bucket`. In its most simple form, this
function assumes the uploaded object will have the same name of the provided
`file` object. An `object-name` may be optionally provided, which will be
used as the object name in the bucket. Furthermore, a `metadata` map
may also be included with the following keys:

:acl
:cache-control
:content-disposition
:content-encoding
:content-language
:content-type
:crc32c
:event-based-hold
:md5-hash
:metadata
:storage-class
:temporary-hold

`bucket` may be a String or Bucket structure.

Further information about options that may be passed as metadata can be
found in the following URL:
https://cloud.google.com/storage/docs/json_api/v1/objects/insert
raw docstring

coerce-fileclj

(coerce-file file)

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

× close