func ApplySetFlags(values *charts.Values, flags []Flag) error
ApplySetFlags iterates through the given slice of Flags and applies the effect of each set flag to the given Values. Flags effects are applied in the order they appear in the slice.
BoolFlag is a Flag with a bool typed value.
type BoolFlag struct { Value bool // contains filtered or unexported fields }
func NewBoolFlag(flagSet *pflag.FlagSet, name string, defaultValue bool, description string, apply func(values *charts.Values, value bool) error) *BoolFlag
NewBoolFlag creates a new bool typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func (flag *BoolFlag) Apply(values *charts.Values) error
Apply executes the stored apply function on the given Values.
func (flag *BoolFlag) IsSet() bool
IsSet returns true if and only if the Flag has been explicitly set with a value.
func (flag *BoolFlag) Name() string
Name returns the name of the flag.
DurationFlag is a Flag with a time.Duration typed value.
type DurationFlag struct { Value time.Duration // contains filtered or unexported fields }
func NewDurationFlag(flagSet *pflag.FlagSet, name string, defaultValue time.Duration, description string, apply func(values *charts.Values, value time.Duration) error) *DurationFlag
NewDurationFlag creates a new time.Duration typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func (flag *DurationFlag) Apply(values *charts.Values) error
Apply executes the stored apply function on the given Values.
func (flag *DurationFlag) IsSet() bool
IsSet returns true if and only if the Flag has been explicitly set with a value.
func (flag *DurationFlag) Name() string
Name returns the name of the flag.
Flag is an interface which describes a command line flag that affects the Helm Values used to render Helm charts. This interface allows us to iterate over flags which have been set and apply their effects to the Values.
type Flag interface { Apply(values *charts.Values) error IsSet() bool Name() string }
Int64Flag is a Flag with an int64 typed value.
type Int64Flag struct { Value int64 // contains filtered or unexported fields }
func NewInt64Flag(flagSet *pflag.FlagSet, name string, defaultValue int64, description string, apply func(values *charts.Values, value int64) error) *Int64Flag
NewInt64Flag creates a new int64 typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func (flag *Int64Flag) Apply(values *charts.Values) error
Apply executes the stored apply function on the given Values.
func (flag *Int64Flag) IsSet() bool
IsSet returns true if and only if the Flag has been explicitly set with a value.
func (flag *Int64Flag) Name() string
Name returns the name of the flag.
StringFlag is a Flag with a string typed value.
type StringFlag struct { Value string // contains filtered or unexported fields }
func NewStringFlag(flagSet *pflag.FlagSet, name string, defaultValue string, description string, apply func(values *charts.Values, value string) error) *StringFlag
NewStringFlag creates a new string typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func NewStringFlagP(flagSet *pflag.FlagSet, name string, short string, defaultValue string, description string, apply func(values *charts.Values, value string) error) *StringFlag
NewStringFlagP creates a new string typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func (flag *StringFlag) Apply(values *charts.Values) error
Apply executes the stored apply function on the given Values.
func (flag *StringFlag) IsSet() bool
IsSet returns true if and only if the Flag has been explicitly set with a value.
func (flag *StringFlag) Name() string
Name returns the name of the flag.
func (flag *StringFlag) Set(value string) error
Set sets the given value to the underlying Flag
StringSliceFlag is a Flag with a []string typed value.
type StringSliceFlag struct { Value []string // contains filtered or unexported fields }
func NewStringSliceFlag(flagSet *pflag.FlagSet, name string, defaultValue []string, description string, apply func(values *charts.Values, value []string) error) *StringSliceFlag
NewStringSliceFlag creates a new []string typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func (flag *StringSliceFlag) Apply(values *charts.Values) error
Apply executes the stored apply function on the given Values.
func (flag *StringSliceFlag) IsSet() bool
IsSet returns true if and only if the Flag has been explicitly set with a value.
func (flag *StringSliceFlag) Name() string
Name returns the name of the flag.
UintFlag is a Flag with a uint typed value.
type UintFlag struct { Value uint // contains filtered or unexported fields }
func NewUintFlag(flagSet *pflag.FlagSet, name string, defaultValue uint, description string, apply func(values *charts.Values, value uint) error) *UintFlag
NewUintFlag creates a new uint typed Flag that executes the given function when applied. The flag is attached to the given FlagSet.
func (flag *UintFlag) Apply(values *charts.Values) error
Apply executes the stored apply function on the given Values.
func (flag *UintFlag) IsSet() bool
IsSet returns true if and only if the Flag has been explicitly set with a value.
func (flag *UintFlag) Name() string
Name returns the name of the flag.