From 21dee3cfc0f46ed2a394839a6ac67b1c2c7e532d Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 25 Oct 2024 13:13:28 +0200 Subject: [PATCH] Add config spec for cred_rot --- src/dda/backup/cred_rot/domain.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dda/backup/cred_rot/domain.clj b/src/dda/backup/cred_rot/domain.clj index abe2e1b..1a1cec1 100644 --- a/src/dda/backup/cred_rot/domain.clj +++ b/src/dda/backup/cred_rot/domain.clj @@ -3,14 +3,19 @@ [orchestra.core :refer [defn-spec]] [clojure.spec.alpha :as s] [clojure.string :as str] + [dda.backup.core.domain :as cd] + [dda.backup.restic.domain :as rd] [cljc.java-time.local-date :as ld] [cljc.java-time.format.date-time-formatter :as df])) (s/def ::new-password-file string?) +(s/def ::config (s/keys :req-un [::rd/restic-repository + ::rd/password-file] + :opt-un [::rd/certificate-file + ::new-password-file])) (def lowercase-numeric #"[a-z0-9]+") (def alphanumeric #"[a-zA-Z0-9]+") - ; true | false (s/def ::current boolean?) ; 521e0760