Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 Changes in this version + const OPTION_SOURCE type Config + Maintainer string + func GetConfig(cfg *configmain.Config) *Config + func (this *Config) Evaluate() error v0.1.0 Dec 4, 2019 Changes in this version + var GracePeriod time.Duration + func RegisterExtension(e Extension) + func WithConfig(ctx context.Context, config *Config) context.Context + type ArbitraryOption struct + Default interface{} + Description string + FlagSet *pflag.FlagSet + Name string + Type reflect.Type + func (this *ArbitraryOption) AddToCommand(cmd *cobra.Command) + func (this *ArbitraryOption) BoolValue() bool + func (this *ArbitraryOption) Changed() bool + func (this *ArbitraryOption) DurationValue() time.Duration + func (this *ArbitraryOption) IntValue() int + func (this *ArbitraryOption) StringArray() []string + func (this *ArbitraryOption) StringValue() string + type Config struct + ArbitraryOptions map[string]*ArbitraryOption + CPUProfile string + Controllers string + DisableNamespaceRestriction bool + LogLevel string + Name string + Namespace string + NamespaceRestriction bool + OmitLease bool + PluginDir string + ServerPortHTTP int + func Get(ctx context.Context) *Config + func NewConfig() *Config + func (this *Config) AddBoolOption(name string) (*ArbitraryOption, bool) + func (this *Config) AddDurationOption(name string) (*ArbitraryOption, bool) + func (this *Config) AddIntOption(name string) (*ArbitraryOption, bool) + func (this *Config) AddOption(name string, t reflect.Type) (*ArbitraryOption, bool) + func (this *Config) AddStringArrayOption(name string) (*ArbitraryOption, bool) + func (this *Config) AddStringOption(name string) (*ArbitraryOption, bool) + func (this *Config) AddToCommand(cmd *cobra.Command) + func (this *Config) GetOption(name string) *ArbitraryOption + type Extension func(cfg *Config)