Documentation ¶
Index ¶
Constants ¶
View Source
const ( Enable = "enable" Frequency = "frequency" )
Callhome related keys
Variables ¶
View Source
var DefaultKVS = config.KVS{ config.KV{ Key: Enable, Value: "off", }, config.KV{ Key: Frequency, Value: "24h", }, }
DefaultKVS - default KV config for subnet settings
View Source
var ( // HelpCallhome - provides help for callhome config HelpCallhome = config.HelpKVS{ config.HelpKV{ Key: Enable, Type: "on|off", Description: "set to enable callhome" + defaultHelpPostfix(Enable), Optional: true, }, config.HelpKV{ Key: Frequency, Type: "duration", Description: "time duration between callhome cycles e.g. 24h" + defaultHelpPostfix(Frequency), Optional: true, }, } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Flag indicating whether callhome is enabled. Enable bool `json:"enable"` // The interval between callhome cycles Frequency time.Duration `json:"frequency"` }
Config represents the subnet related configuration
func LookupConfig ¶
LookupConfig - lookup config and override with valid environment settings if any.
func (*Config) FrequencyDur ¶
FrequencyDur - returns the currently configured callhome frequency
Click to show internal directories.
Click to hide internal directories.