confd

package
v0.0.0-...-439d2e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

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

func Run(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

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

func RunOnce(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL