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) 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{}
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 `json:"flagSources"` // 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)
Click to show internal directories.
Click to hide internal directories.