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