Documentation ¶
Index ¶
- type Flags
- func (f *Flags) Add(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{}
- func (f *Flags) Delete(key string)
- func (f *Flags) DeleteFlags(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{}
- func (f *Flags) Get(key string) (model.Flag, bool)
- func (f *Flags) GetAll() map[string]model.Flag
- func (f *Flags) Merge(logger *logger.Logger, source string, flags map[string]model.Flag) (map[string]interface{}, bool)
- func (f *Flags) SelectorForFlag(flag model.Flag) string
- func (f *Flags) Set(key string, flag model.Flag)
- func (f *Flags) String() (string, error)
- func (f *Flags) Update(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{}
- type SourceDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { Flags map[string]model.Flag `json:"flags"` FlagSources []string SourceMetadata map[string]SourceDetails // contains filtered or unexported fields }
func (*Flags) Add ¶
func (f *Flags) Add(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{}
Add new flags from source.
func (*Flags) DeleteFlags ¶
func (f *Flags) DeleteFlags(logger *logger.Logger, source string, flags map[string]model.Flag) map[string]interface{}
DeleteFlags matching flags from source.
func (*Flags) GetAll ¶
GetAll returns a copy of the store's state (copy in order to be concurrency safe)
func (*Flags) Merge ¶
func (f *Flags) Merge( logger *logger.Logger, source string, flags map[string]model.Flag, ) (map[string]interface{}, bool)
Merge provided flags from source with currently stored flags.
func (*Flags) SelectorForFlag ¶ added in v0.6.2
type SourceDetails ¶ added in v0.6.2
Click to show internal directories.
Click to hide internal directories.