Liking cljdoc? Tell your friends :D

wagoe.platform.shell.privacy

Data export and retention over what modules contribute: :data-export exporters and :retention policies (wagoe.platform.ports.privacy).

Retention is off until :wagoe/privacy :retention names a policy, and then runs as the recurring job retention-job-type on :wagoe/jobs:

:wagoe/privacy {:retention {:user/audit-log {:retain "P2Y"}} :retention-schedule {:cron "0 3 * * *" :zone "UTC"}}

Data export and retention over what modules contribute: `:data-export`
exporters and `:retention` policies (`wagoe.platform.ports.privacy`).

Retention is off until `:wagoe/privacy :retention` names a policy, and then
runs as the recurring job `retention-job-type` on `:wagoe/jobs`:

  :wagoe/privacy {:retention          {:user/audit-log {:retain "P2Y"}}
                  :retention-schedule {:cron "0 3 * * *" :zone "UTC"}}
raw docstring

assert-runnable!clj

(assert-runnable! plan policies)

Throws :configuration-error when a policy in plan is not an IRetentionPolicy: its module could not provide it, and every run would fail.

Throws :configuration-error when a policy in `plan` is not an
`IRetentionPolicy`: its module could not provide it, and every run would
fail.
sourceraw docstring

create-data-exportclj

(create-data-export exporters)

An IDataExport over exporters, {exporter-id IDataExporter}.

An `IDataExport` over `exporters`, {exporter-id IDataExporter}.
sourceraw docstring

default-retention-scheduleclj

source

retention-job-handlerclj

(retention-job-handler plan policies)

The job handler for retention-job-type. Fails the job when a policy failed, so it is retried; deleting what is already gone is harmless.

The job handler for `retention-job-type`. Fails the job when a policy
failed, so it is retried; deleting what is already gone is harmless.
sourceraw docstring

retention-job-typeclj

source

retention-plan!clj

(retention-plan! configured contributed)

The policies configured names, each with its period. Throws :configuration-error when one is unknown or its period malformed.

The policies `configured` names, each with its period. Throws
:configuration-error when one is unknown or its period malformed.
sourceraw docstring

run-retention!clj

(run-retention! plan policies now)

Run each policy in plan against policies at now. One failing policy does not stop the rest. Returns {:deleted {id n} :failed {id message}}.

Run each policy in `plan` against `policies` at `now`. One failing policy
does not stop the rest. Returns {:deleted {id n} :failed {id message}}.
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