Pure halves of data export and retention: the export document, and which retention policies run with which cutoff.
Pure halves of data export and retention: the export document, and which retention policies run with which cutoff.
(archive-entry id path)Where a file an exporter gave as path sits in the zip: under the
exporter's id, namespace kept. Empty, . and .. segments are dropped, so no entry
extracts outside the archive's folder; nil when nothing is left.
Where a file an exporter gave as `path` sits in the zip: under the exporter's `id`, namespace kept. Empty, `.` and `..` segments are dropped, so no entry extracts outside the archive's folder; nil when nothing is left.
(cutoff retain now)now less retain, a Period or Duration. Periods count calendar years and
months in UTC.
`now` less `retain`, a Period or Duration. Periods count calendar years and months in UTC.
(export-document subject sections now)The export of subject from each exporter's data in sections
({exporter-id data}). An exporter that returned nil holds nothing for this
type of subject and is left out.
The export of `subject` from each exporter's data in `sections`
({exporter-id data}). An exporter that returned nil holds nothing for this
type of subject and is left out.(export-json doc)doc, an export from IDataExport, as JSON. Keys are camelCased and keep
their namespace.
`doc`, an export from `IDataExport`, as JSON. Keys are camelCased and keep their namespace.
(export-response doc)doc, an export from IDataExport, as a JSON download.
`doc`, an export from `IDataExport`, as a JSON download.
(parse-retain s)An ISO-8601 period ("P2Y", "P90D") or duration ("PT12H") as a java.time Period or Duration, or {:error …}.
An ISO-8601 period ("P2Y", "P90D") or duration ("PT12H") as a
java.time Period or Duration, or {:error …}.(retention-plan configured contributed){:plan {policy-id Period-or-Duration}} for the configured policies, or {:error …}.
configured is {policy-id {:retain "P2Y"}}; contributed the ids modules
contribute. A configured id nobody contributes is an error rather than a
no-op: a misspelled policy would otherwise keep data for ever, silently.
{:plan {policy-id Period-or-Duration}} for the configured policies, or
{:error …}.
`configured` is {policy-id {:retain "P2Y"}}; `contributed` the ids modules
contribute. A configured id nobody contributes is an error rather than a
no-op: a misspelled policy would otherwise keep data for ever, silently.(subject-error {:keys [type id]})Why subject cannot be exported, or nil.
Why `subject` cannot be exported, or nil.
(zip-requested? request)Whether request asks for the export as a zip: ?format=zip, or an
Accept header naming application/zip. JSON otherwise.
Whether `request` asks for the export as a zip: `?format=zip`, or an Accept header naming application/zip. JSON otherwise.
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 |