pod.epiccastle.bbssh.config-repository

Creates and calls the various methods of an ConfigRepository that exists on the pod heap.

get-config

(get-config config-repository hostname)

return the config reference for the specified hostname in the config-repository

new

(new callbacks)

Create a new config-repository instance. Pass in a hashmap containing the function to execute as values. The hashmap should contain one keyword and value:

:get-config (fn [hostname] ...)

return a config object to be used for the specified hostname.

openssh-config-file

(openssh-config-file config-file)

Create an OpenSSH config-repository from a file. config-file can be a string (supports tilde expansion of home directory) or a java.io.File instance.

openssh-config-string

(openssh-config-string config)

Create and OpenSSH config-repository from a data string.