Documentation ¶
Overview ¶
* Copyright FMR LLC <opensource@fidelity.com> * * SPDX-License-Identifier: Apache
Index ¶
- Constants
- func Get(ctx context.Context, key string) ([]byte, error)
- func GetKeys(ctx context.Context, prefix string) ([]string, error)
- func GetObject(key string, value interface{}) error
- func GetObjectWithSub(ctx context.Context, key string, obj interface{}) error
- func GetWithPrefix(pre string) (map[string][]byte, error)
- func InitClientConfig(ca string, cert string, key string, endpoints []string)
- func Put(key string, value interface{}) error
- func PutStr(key, value string) error
Constants ¶
View Source
const ( THELIV_CONFIG_KEY string = "/theliv/config" DATADOG_CONFIG_KEY string = "/theliv/config/datadog" THELIV_AUTH_KEY string = "/theliv/config/authconf" CLUSTERS_KEY string = "/theliv/clusters" PROMETHEUS_GLOBAL_CONFIG_KEY string = "/theliv/config/prometheus" THELIV_LEVEL_CONFIG_KEY string = "/theliv/config/levelconf" LDAP_CONFIG_KEY string = "/theliv/config/ldap" )
Variables ¶
This section is empty.
Functions ¶
func GetObject ¶
Get object (struct) from etcd, assume all the data in etcd should be in json format value should be a pointer
func GetObjectWithSub ¶
Get the json value of the key, also the sub paths Adding the sub values to parent, ASSUME the type of sub is []byte
func GetWithPrefix ¶
Get both keys and values start with prefix
func InitClientConfig ¶
Init client config, could be called only once, before any other functions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.