Documentation ¶
Overview ¶
Package confd provides basic Confd support.
Right now, this library is highly specific to the needs of the present builder. Because the confd library is not all public, we don't use it directly. Instead, we invoke the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run starts confd and runs it in the background.
If the command fails immediately on startup, an error is immediately returned. But from that point, a goroutine watches the command and reports if the command dies.
Params: - node (string): The etcd node to use. (Only etcd is currently supported) - interval (int, default:5): The rebuilding interval.
Returns
bool true if this succeeded.
func RunOnce ¶
RunOnce runs the equivalent of `confd --onetime`.
This may run the process repeatedly until either we time out (~20 minutes) or the templates are successfully built.
Importantly, this blocks until the run is complete.
Params: - node (string): The etcd node to use. (Only etcd is currently supported)
Returns: - The []bytes from stdout and stderr when running the program.
Types ¶
This section is empty.