Allows writing an object using multiparts as a stream. Useful for large files and logging.
Allows writing an object using multiparts as a stream. Useful for large files and logging.
(input-stream->multipart ctx
{in :input-stream
:as opts
:keys [content-type close? buf-size progress]
:or {content-type "application/binary"
buf-size 65536}})
Pipes an input stream to a multipart upload. When the stream closes,
the multipart is committed. opts
requires the properties needed to
create a multipart (ns, bucket-name and object-name), and also input-stream
,
which is the stream to read from. If close?
is true
, the input
stream is closed when the upload aborts.
Pipes an input stream to a multipart upload. When the stream closes, the multipart is committed. `opts` requires the properties needed to create a multipart (ns, bucket-name and object-name), and also `input-stream`, which is the stream to read from. If `close?` is `true`, the input stream is closed when the upload aborts.
(stream->multipart ctx opts)
Returns a Manifold stream
that will send each message received to
a multipart upload. When the stream is closed, the multipart is
committed. In order to abort the upload, send the cancel
token.
Returns a Manifold `stream` that will send each message received to a multipart upload. When the stream is closed, the multipart is committed. In order to abort the upload, send the `cancel` token.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close