Documentation ¶
Index ¶
- func FormattedOptionName(key string) string
- func IsPersistentOption(arg string) bool
- func SectionKey(key string) string
- func SectionName(key string) string
- type Configuration
- func (p *Configuration) ArgByProcessTypeAndName(serverType definitions.ServerType, key string) *[]string
- func (p *Configuration) ArgByServerTypeAndName(serverType definitions.ServerType, key string) *[]string
- func (p *Configuration) ArgsForServerType(serverType definitions.ServerType) map[string][]string
- func (p *Configuration) ByProcessType(serverType definitions.ServerType) *ConfigurationType
- func (p *Configuration) ByServerType(serverType definitions.ServerType) *ConfigurationType
- func (p *Configuration) EnvByProcessTypeAndName(serverType definitions.ServerType, key string) *[]string
- func (p *Configuration) EnvByServerTypeAndName(serverType definitions.ServerType, key string) *[]string
- func (p *Configuration) EnvsForServerType(serverType definitions.ServerType) map[string]string
- type ConfigurationFlag
- type ConfigurationPrefix
- type ConfigurationPrefixes
- type ConfigurationType
- type PersistentOption
- type PersistentOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormattedOptionName ¶
FormattedOptionName returns the option ready to be used in a command line argument, prefixed with `--`.
func IsPersistentOption ¶
func SectionKey ¶
SectionKey returns the name of this option within its configuration section.
func SectionName ¶
SectionName returns the name of the configuration section this option belongs to.
Types ¶
type Configuration ¶
type Configuration struct { All ConfigurationType Coordinators ConfigurationType DBServers ConfigurationType Agents ConfigurationType PersistentOptions PersistentOptions // contains filtered or unexported fields }
func NewConfiguration ¶
func NewConfiguration() Configuration
func (*Configuration) ArgByProcessTypeAndName ¶
func (p *Configuration) ArgByProcessTypeAndName(serverType definitions.ServerType, key string) *[]string
func (*Configuration) ArgByServerTypeAndName ¶
func (p *Configuration) ArgByServerTypeAndName(serverType definitions.ServerType, key string) *[]string
func (*Configuration) ArgsForServerType ¶
func (p *Configuration) ArgsForServerType(serverType definitions.ServerType) map[string][]string
func (*Configuration) ByProcessType ¶
func (p *Configuration) ByProcessType(serverType definitions.ServerType) *ConfigurationType
func (*Configuration) ByServerType ¶
func (p *Configuration) ByServerType(serverType definitions.ServerType) *ConfigurationType
func (*Configuration) EnvByProcessTypeAndName ¶
func (p *Configuration) EnvByProcessTypeAndName(serverType definitions.ServerType, key string) *[]string
func (*Configuration) EnvByServerTypeAndName ¶
func (p *Configuration) EnvByServerTypeAndName(serverType definitions.ServerType, key string) *[]string
func (*Configuration) EnvsForServerType ¶
func (p *Configuration) EnvsForServerType(serverType definitions.ServerType) map[string]string
type ConfigurationFlag ¶
type ConfigurationPrefix ¶
type ConfigurationPrefix struct { Usage func(key string) string FieldSelector func(p *Configuration, key string) *[]string DeprecatedHintFormat string }
func (ConfigurationPrefix) GetDeprecatedHint ¶
func (p ConfigurationPrefix) GetDeprecatedHint(key string) string
type ConfigurationPrefixes ¶
type ConfigurationPrefixes map[string]ConfigurationPrefix
func (ConfigurationPrefixes) Lookup ¶
func (c ConfigurationPrefixes) Lookup(key string) (string, *ConfigurationPrefix, string, error)
func (ConfigurationPrefixes) Parse ¶
func (c ConfigurationPrefixes) Parse(args ...string) (*Configuration, []ConfigurationFlag, error)
func (ConfigurationPrefixes) UsageHint ¶
func (c ConfigurationPrefixes) UsageHint() string
type ConfigurationType ¶
func NewConfigurationType ¶
func NewConfigurationType() ConfigurationType
type PersistentOption ¶
type PersistentOptions ¶
type PersistentOptions []PersistentOption
func (*PersistentOptions) Add ¶
func (po *PersistentOptions) Add(prefix, arg string, val *[]string)
func (*PersistentOptions) ValidateCompatibility ¶
func (po *PersistentOptions) ValidateCompatibility(otherOpts *PersistentOptions) error
Click to show internal directories.
Click to hide internal directories.