A node-state implementation that maintains node state in a parallel directory tree.
A node-state implementation that maintains node state in a parallel directory tree.
(create-path-with-template template-path new-path)Create the /var/lib/pallet directory if required, ensuring correct permissions. Note this is not the final directory.
Create the /var/lib/pallet directory if required, ensuring correct permissions. Note this is not the final directory.
(default-state-root)Provide a computed default for state-root if it isn't set.
Provide a computed default for state-root if it isn't set.
(md5-path state-path)Return a path for the md5 file for state-path under state-root.
Return a path for the md5 file for state-path under state-root.
(record path
state-path
{:keys [max-versions no-versioning versioning]
:or {max-versions 5 versioning :numbered}})Script to record a new (version of a) file in state-root
Script to record a new (version of a) file in state-root
(record-md5 path md5-path)Script to record a file's md5
Script to record a file's md5
(state-path session state-root path)Return a path under state-root for a given path.
Return a path under state-root for a given path.
(state-path* session state-root script-dir path)Return a path under state-root for a given path.
Return a path under state-root for a given path.
(state-root-backup {:keys [state-root] :as options})Return a state-root backup instance that can keep backups.
Return a state-root backup instance that can keep backups.
(state-root-checksum {:keys [state-root] :as options})Return a state-root checksum instance that can verify md5 checksums.
Return a state-root checksum instance that can verify md5 checksums.
(state-root-setup {:keys [state-root] :as options})Return a state-root-setup instance that can setup the state root.
Return a state-root-setup instance that can setup the state root.
(verify path state-path md5-path)verify if the files at path and state-path are identical, and whether they match the md5-path.
verify if the files at path and state-path are identical, and whether they match the md5-path.
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 |