Documentation ¶
Overview ¶
Copyright (c) 2013 Kelsey Hightower. All rights reserved. Use of this source code is governed by the Apache License, Version 2.0 that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.4.0
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper around the etcd client
func NewEtcdClient ¶
NewEtcdClient returns an *etcd.Client with a connection to named machines. It returns an error if a connection to the cluster cannot be made.
func (*Client) GetValues ¶ added in v0.4.0
GetValues queries etcd for keys prefixed by prefix. Etcd paths (keys) are translated into names more suitable for use in templates. For example if prefix were set to '/production' and one of the keys were '/nginx/port'; the prefixed '/production/nginx/port' key would be queried for. If the value for the prefixed key where 80, the returned map would contain the entry vars["nginx_port"] = "80".