properties

package
v0.0.0-...-c3677c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFlagsForAltSrc

func ConvertFlagsForAltSrc(flags []cli.Flag) []cli.Flag

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL