pod.epiccastle.bbssh.config
Creates and calls the various methods of an ConfigRepository that exists on the pod heap.
get-hostname
(get-hostname config)
return the hostname from a config object
get-port
(get-port config)
return the port for a config object
get-user
(get-user config)
return the username for a config object
get-value
(get-value config key)
return the string setting for key
from a config object
get-values
(get-values config key)
return a vector of strings that is set for the value key
from a config object
new
(new callbacks)
Create a new config instance. Pass in a hashmap containing the functions to execute as values. These functions will be called to gather information on the config. The hashmap should contain some subset of the following keywords:
:get-hostname (fn [] ...)
return a string specifying the hostname in this config.
:get-user (fn [] ...)
return a string specifying the username in this config.
:get-port (fn [] ...)
return a number specifying the port in this config.
:get-value (fn [key] ...)
return the string value in the config for the specified key.
:get-values (fn [] ...)
return a vector of srtings in this config for the specified key.