Liking cljdoc? Tell your friends :D

tech.s3.core


byte-array-to-md5clj

(byte-array-to-md5 byte-data)

CREDS*clj


CREDS-LOCK*clj


delete-object-cloudclj

(delete-object-cloud bucket k)

download-objectclj

(download-object bucket k)

Getting the s3 object into the local location. Useful for situations where dealing with streams or ByteArrays isn't the preferred method of consumption.

Getting the s3 object into the local location. Useful for situations where
dealing with streams or ByteArrays isn't the preferred method of
consumption.
raw docstring

empty-file-md5clj


file-exists?clj

(file-exists? path)

Takes a path and returns true if a file exists.

Takes a path and returns true if a file exists.
raw docstring

get-content-typeclj

(get-content-type fname)

get-nippyclj

(get-nippy bucket key)

Get a nippy blob from s3. The caller must have taoensso.nippy in their project.

Get a nippy blob from s3.  The caller must have taoensso.nippy in their project.
raw docstring

get-objectclj

(get-object bucket k)

Get an object given a bucket and key. NOTE: Returns a stream that you have to remember to close.

Get an object given a bucket and key.
NOTE: Returns a stream that you have to remember to close.
raw docstring

get-object-bytesclj

(get-object-bytes bucket k)

Get an object given a bucket and key. NOTE: Returns a realized byte-array rather than a stream.

Get an object given a bucket and key.
NOTE: Returns a realized byte-array rather than a stream.
raw docstring

get-object-cloudclj

(get-object-cloud bucket k)

get-object-localclj

(get-object-local bucket k)

Retrieves a file from the local cache.

Retrieves a file from the local cache.
raw docstring

get-object-metadataclj

(get-object-metadata bucket key)

get-s3-credsclj

(get-s3-creds)

If global creds are setup, grab whatever they are. Else try to find them via the config

If global creds are setup, grab whatever they are. Else try to
find them via the config
raw docstring

is-cached-locally?clj

(is-cached-locally? bucket k)

Determines if a given bucket/key has already been downloaded to the local cache.

Determines if a given bucket/key has already been downloaded to the local cache.
raw docstring

is-expired-token?clj

(is-expired-token? exception)

is-invalid-access-key?clj

(is-invalid-access-key? exception)

is-null-access-key?clj

(is-null-access-key? exception)

lazy-object-list-seqclj

(lazy-object-list-seq bucket prefix & [marker])

list-local-objectsclj

(list-local-objects bucket prefix)

List the local objects. No attempt is made to unify this output with the output of list objects

List the local objects. No attempt is made to unify this output
with the output of list objects
raw docstring

list-objectsclj

(list-objects bucket prefix)

list-prefixesclj

(list-prefixes bucket)

list-some-objectsclj

(list-some-objects bucket prefix & {:keys [marker]})

List objects given a bucket and prefix

List objects given a bucket and prefix
raw docstring

local-exists-and-latest?clj

(local-exists-and-latest? bucket k)

True iff the cached file exists and is up to date with the s3 version.

True iff the cached file exists and is up to date with the s3 version.
raw docstring

local-s3-pathclj

(local-s3-path bucket k)

Get the path for a given s3 item in the local cache

Get the path for a given s3 item in the local cache
raw docstring

needs-new-cred-request?clj

(needs-new-cred-request? &
                         {:keys [current-time]
                          :or {current-time (System/currentTimeMillis)}})

put-nippyclj

(put-nippy bucket key data)

Put a nippy blob on s3. The caller must have taoensso.nippy in their project.

Put a nippy blob on s3.  The caller must have taoensso.nippy in their project.
raw docstring

put-objectclj

(put-object bucket k v & {:keys [metadata verify-md5?] :or {metadata {}}})

Put an object into a given bucket and key. V can be an input stream, a file, or a string.

Put an object into a given bucket and key.  V can be an input stream,
a file, or a string.
raw docstring

put-object-cloudclj

(put-object-cloud bucket k v & {:keys [metadata] :or {metadata {}}})

put-object-localclj

(put-object-local bucket k v)

update-creds!clj

(update-creds!)

Do a vault query to get new vault creds.

Do a vault query to get new vault creds.
raw docstring

with-credential-updateclj/smacro

(with-credential-update & body)

Attempt an s3 operation. If the operation fails with an invalid access key, request new aws credentials from vault exactly once. Continue attempting operation until it either fails with a different exception, succeeds

Attempt an s3 operation.  If the operation fails with an invalid
access key, request new aws credentials from vault exactly once.
Continue attempting operation until it either fails with a different
exception, succeeds
raw docstring

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

× close