...

Source file src/github.com/kvaps/dnsmasq-controller/pkg/conf/conf.go

Documentation: github.com/kvaps/dnsmasq-controller/pkg/conf

     1  package conf
     2  
     3  type Config struct {
     4  	Generation           int
     5  	WatchNamespace       string
     6  	MyNamespace          string
     7  	MetricsAddr          string
     8  	EnableLeaderElection bool
     9  	ControllerName       string
    10  	LeaderElectionID     string
    11  	SyncDelay            int
    12  	DnsmasqConfDir       string
    13  	DnsmasqOptions       []string
    14  	LogLevel             string
    15  	Development          bool
    16  	CleanupDir           bool
    17  	EnableDHCP           bool
    18  	EnableDNS            bool
    19  }
    20  
    21  var instance *Config
    22  
    23  func GetConfig() *Config {
    24  	if instance == nil {
    25  		instance = &Config{}
    26  	}
    27  	return instance
    28  }
    29  

View as plain text