Liking cljdoc? Tell your friends :D

dev.gethop.object-storage.core


get-object-url-optscljmultimethod

source

ObjectStoragecljprotocol

Abstraction for managing objects storage

Abstraction for managing objects storage

copy-objectclj

(copy-object this source-object-id destination-object-id)
(copy-object this source-object-id destination-object-id opts)

Copy object identified with source-object-id as key into new object identified with destination-object-id in same assumed storage system. For now there is no support to copy objects between different storage systems. Use opts to specify additional options.

Copy object identified with `source-object-id` as key into new object identified with `destination-object-id`
in same assumed storage system.
For now there is no support to copy objects between different storage systems.
Use `opts` to specify additional options.

delete-objectclj

(delete-object this object-id)
(delete-object this object-id opts)

Delete the object object-id from the storage system. Use opts to specify additional delete options.

Delete the object `object-id` from the storage system.
Use `opts` to specify additional delete options.

get-objectclj

(get-object this object-id)
(get-object this object-id opts)

Get the object with key object-id from the storage system, using opts options

Get the object with key `object-id` from the storage system, using `opts` options

get-object-urlclj

(get-object-url this object-id)
(get-object-url this object-id opts)

Generates a url allowing access to the object without the need to auth oneself. Get the object with key object-id from the storage system, using opts options

Generates a url allowing access to the object without the need to auth oneself.
Get the object with key `object-id` from the storage system, using `opts` options

list-objectsclj

(list-objects this parent-object-id)
(list-objects this parent-object-id opts)

List all child objects of the parent-object-id object. Use opts to specify additional options

List all child objects of the `parent-object-id` object.
Use `opts` to specify additional options

put-objectclj

(put-object this object-id object)
(put-object this object-id object opts)

Put object in the storage system, using object-id as the key. Use opts to specify additional put options.

object can be either a File object or an InputStream. In the latter case, if you know the size of the content in the InputStream, add the :metadata key to the opts map. Its value should be a map with a key called :object-size, with the size as its value.

For storage systems that support it, you can also specify the object Content-Type, and the desired Content-Disposition and/or Content-Encoding that will be used for get-object operations that use the object URL directly. For that, you can pass the :content-type, :content-disposition and/or :content-encoding keys in the :metadata map.

Put `object` in the storage system, using `object-id` as the key.
 Use `opts` to specify additional put options.

`object` can be either a File object or an InputStream. In the
latter case, if you know the size of the content in the
InputStream, add the `:metadata` key to the `opts` map. Its value
should be a map with a key called `:object-size`, with the size as
its value.

For storage systems that support it, you can also specify the
object Content-Type, and the desired Content-Disposition and/or
Content-Encoding that will be used for `get-object` operations
that use the object URL directly. For that, you can pass the
`:content-type`, `:content-disposition` and/or `:content-encoding`
keys in the `:metadata` map.

rename-objectclj

(rename-object this object-id new-object-id)

Rename object-id to new-object-id in the storage system.

Rename `object-id` to `new-object-id` in the storage system.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close