Versions in this module Expand all Collapse all v0 v0.7.4 May 29, 2018 Changes in this version + const ConfigFile + const DatastoreGlobal + const DatastorePerHost + const Default + const EnvironmentVariable + const MinIptablesMarkBits + var AuthorityRegexp = regexp.MustCompile(`^[^:/]+:\d+$`) + var HostnameRegexp = regexp.MustCompile(`^[a-zA-Z0-9_.-]+$`) + var IfaceListRegexp = regexp.MustCompile(`^[a-zA-Z0-9_-]{1,15}(,[a-zA-Z0-9_-]{1,15})*$`) + var SourcesInDescendingOrder = []Source + var StringRegexp = regexp.MustCompile(`^.*$`) + func LoadConfigFile(filename string) (map[string]string, error) + func LoadConfigFileData(data []byte) (map[string]string, error) + func LoadConfigFromEnvironment(environ []string) map[string]string + type BoolParam struct + func (p *BoolParam) Parse(raw string) (interface{}, error) + type Config struct + ConnectionDropIntervalSecs time.Duration + ConnectionRebalancingMode string + DatastoreType string + DebugDisableLogDropping bool + DebugMemoryProfilePath string + EtcdAddr string + EtcdCaFile string + EtcdCertFile string + EtcdEndpoints []string + EtcdKeyFile string + EtcdScheme string + HealthEnabled bool + HealthPort int + K8sNamespace string + K8sPortName string + K8sServiceName string + K8sServicePollIntervalSecs time.Duration + LogFilePath string + LogSeverityFile string + LogSeverityScreen string + LogSeveritySys string + MaxConnectionsLowerLimit int + MaxConnectionsUpperLimit int + PrometheusGoMetricsEnabled bool + PrometheusMetricsEnabled bool + PrometheusMetricsPort int + PrometheusProcessMetricsEnabled bool + ServerMaxFallBehindSecs time.Duration + ServerMaxMessageSize int + ServerMinBatchingAgeThresholdSecs time.Duration + ServerPingIntervalSecs time.Duration + ServerPongTimeoutSecs time.Duration + ServerPort int + SnapshotCacheMaxBatchSize int + func New() *Config + func (config *Config) DatastoreConfig() apiconfig.CalicoAPIConfig + func (config *Config) RawValues() map[string]string + func (config *Config) UpdateFrom(rawData map[string]string, source Source) (changed bool, err error) + func (config *Config) Validate() (err error) + type EndpointListParam struct + func (p *EndpointListParam) Parse(raw string) (result interface{}, err error) + type FileParam struct + Executable bool + MustExist bool + func (p *FileParam) Parse(raw string) (interface{}, error) + type FloatParam struct + func (p *FloatParam) Parse(raw string) (result interface{}, err error) + type Int32Param struct + func (p *Int32Param) Parse(raw string) (interface{}, error) + type IntParam struct + Max int + Min int + func (p *IntParam) Parse(raw string) (interface{}, error) + type Ipv4Param struct + func (p *Ipv4Param) Parse(raw string) (result interface{}, err error) + type MarkBitmaskParam struct + func (p *MarkBitmaskParam) Parse(raw string) (interface{}, error) + type Metadata struct + Default interface{} + DieOnParseFailure bool + Local bool + Name string + NonZero bool + ZeroValue interface{} + func (m *Metadata) GetMetadata() *Metadata + type OneofListParam struct + func (p *OneofListParam) Parse(raw string) (result interface{}, err error) + type PortListParam struct + func (p *PortListParam) Parse(raw string) (interface{}, error) + type PortParam struct + func (p *PortParam) Parse(raw string) (interface{}, error) + type ProtoPort struct + Port uint16 + Protocol string + type RegexpParam struct + Msg string + Regexp *regexp.Regexp + func (p *RegexpParam) Parse(raw string) (result interface{}, err error) + type SecondsParam struct + func (p *SecondsParam) Parse(raw string) (result interface{}, err error) + type Source uint8 + func (source Source) Local() bool + func (source Source) String() string