Liking cljdoc? Tell your friends :D

wagoe.platform.core.privacy

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.
raw docstring

archive-entryclj

(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.
sourceraw docstring

cutoffclj

(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.
sourceraw docstring

export-documentclj

(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.
sourceraw docstring

export-formatclj

source

export-jsonclj

(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.
sourceraw docstring

export-responseclj

(export-response doc)

doc, an export from IDataExport, as a JSON download.

`doc`, an export from `IDataExport`, as a JSON download.
sourceraw docstring

parse-retainclj

(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 …}.
sourceraw docstring

retention-planclj

(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.
sourceraw docstring

subject-errorclj

(subject-error {:keys [type id]})

Why subject cannot be exported, or nil.

Why `subject` cannot be exported, or nil.
sourceraw docstring

subject-typesclj

source

zip-requested?clj

(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.
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