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 ¶
func GetValues ¶
func GetValues(c EtcdClient, prefix string, keys []string) (map[string]interface{}, error)
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 where set to '/production' and one of the keys where '/nginx/port'; the prefixed '/production/nginx/port' key would be quired for. If the value for the prefixed key where 80, the returned map would contain the entry vars["nginx_port"] = "80".
Types ¶
Click to show internal directories.
Click to hide internal directories.