Documentation
¶
Index ¶
- func ConvertFlagsForAltSrc(flags []cli.Flag) []cli.Flag
- func NewQuiteliteSource() func(context *cli.Context) (altsrc.InputSourceContext, error)
- type QuiteliteInputSource
- func (qis *QuiteliteInputSource) Bool(name string) (bool, error)
- func (qis *QuiteliteInputSource) BoolT(name string) (bool, error)
- func (qis *QuiteliteInputSource) Duration(name string) (time.Duration, error)
- func (qis *QuiteliteInputSource) Float64(name string) (float64, error)
- func (qis *QuiteliteInputSource) Generic(name string) (cli.Generic, error)
- func (qis *QuiteliteInputSource) Int(name string) (int, error)
- func (qis *QuiteliteInputSource) IntSlice(name string) ([]int, error)
- func (qis *QuiteliteInputSource) String(name string) (string, error)
- func (qis *QuiteliteInputSource) StringSlice(name string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFlagsForAltSrc ¶
ConvertFlagsForAltSrc enables a flag to be used by altsrc
func NewQuiteliteSource ¶
func NewQuiteliteSource() func(context *cli.Context) (altsrc.InputSourceContext, error)
NewQuiteliteSource instantiates a quitelite source. It will pull unless the disable flag is true.
Types ¶
type QuiteliteInputSource ¶
type QuiteliteInputSource struct {
// contains filtered or unexported fields
}
QuiteliteInputSource is an altsrc backed by the quitelite serialize property
func (*QuiteliteInputSource) Bool ¶
func (qis *QuiteliteInputSource) Bool(name string) (bool, error)
Bool returns an bool from the map otherwise returns false
func (*QuiteliteInputSource) BoolT ¶
func (qis *QuiteliteInputSource) BoolT(name string) (bool, error)
BoolT returns an bool from the map otherwise returns true
func (*QuiteliteInputSource) Duration ¶
func (qis *QuiteliteInputSource) Duration(name string) (time.Duration, error)
Duration returns a duration from the map if it exists otherwise returns 0
func (*QuiteliteInputSource) Float64 ¶
func (qis *QuiteliteInputSource) Float64(name string) (float64, error)
Float64 returns an float64 from the map if it exists otherwise returns 0
func (*QuiteliteInputSource) Generic ¶
func (qis *QuiteliteInputSource) Generic(name string) (cli.Generic, error)
Generic returns an cli.Generic from the map if it exists otherwise returns nil
func (*QuiteliteInputSource) Int ¶
func (qis *QuiteliteInputSource) Int(name string) (int, error)
Int returns an int from the map if it exists otherwise returns 0
func (*QuiteliteInputSource) IntSlice ¶
func (qis *QuiteliteInputSource) IntSlice(name string) ([]int, error)
IntSlice returns an []int from the map if it exists otherwise returns nil
func (*QuiteliteInputSource) String ¶
func (qis *QuiteliteInputSource) String(name string) (string, error)
String returns a string from the map if it exists otherwise returns an empty string
func (*QuiteliteInputSource) StringSlice ¶
func (qis *QuiteliteInputSource) StringSlice(name string) ([]string, error)
StringSlice returns an []string from the map if it exists otherwise returns nil