Documentation ¶
Index ¶
Constants ¶
View Source
const ( AsToolsConfDir = "/etc/aerospike" AsToolsConfName = "astools" )
Variables ¶
This section is empty.
Functions ¶
func BindPFlags ¶
BindPFlags binds the flags to viper. Should be called after the flag set is created. The section is prepended to the flag name to create the viper key. For example, if the config is found under the "cluster" section then we will bind "cluster.host" to the flag "host". If the section is empty then the flag name is used as the key.
func InitConfig ¶
InitConfig reads in config file and ENV variables if set. Should be called from the root commands PersistentPreRunE function with the flags of the current command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.