Just enough XML to talk to S3: pull a tag's text out of a small response document and build the CompleteMultipartUpload request body.
This is deliberately not a general XML library. The documents S3 returns for the handful of operations we use are small, flat, and machine-generated, so a tag scan is enough and avoids a parser dependency.
Just enough XML to talk to S3: pull a tag's text out of a small response document and build the CompleteMultipartUpload request body. This is deliberately *not* a general XML library. The documents S3 returns for the handful of operations we use are small, flat, and machine-generated, so a tag scan is enough and avoids a parser dependency.
(complete-multipart-upload parts)Render a CompleteMultipartUpload request body from parts, a sequence of
{:PartNumber n :ETag "…"} already sorted by part number. ETags are passed
through verbatim (S3 expects the quoted value UploadPart returned).
Render a CompleteMultipartUpload request body from `parts`, a sequence of
`{:PartNumber n :ETag "…"}` already sorted by part number. ETags are passed
through verbatim (S3 expects the quoted value UploadPart returned).(delete-objects keys)Render a DeleteObjects request body listing object keys.
Render a DeleteObjects request body listing object `keys`.
(tag-blocks xml tag)Raw inner XML of every <tag>…</tag> occurrence, in document order. Used to
scope a nested parse — e.g. pull <Key> out of each <Contents> block in a
listing — when the same child tag appears under several parents.
Raw inner XML of every `<tag>…</tag>` occurrence, in document order. Used to scope a nested parse — e.g. pull `<Key>` out of each `<Contents>` block in a listing — when the same child tag appears under several parents.
(tag-text xml tag)Text content of the first <tag>…</tag> in xml, unescaped, or nil if the
tag is absent.
Text content of the first `<tag>…</tag>` in `xml`, unescaped, or nil if the tag is absent.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |