Documentation ¶
Index ¶
- Variables
- func AddFlag(flags *pflag.FlagSet)
- func Enable()
- func Enabled() bool
- func GetAddonParameter(param *cmv1.AddOnParameter, input Input, dflt string) (string, error)
- func GetBool(input Input) (a bool, err error)
- func GetCert(input Input) (a string, err error)
- func GetFloat(input Input) (a float64, err error)
- func GetIPNet(input Input) (a net.IPNet, err error)
- func GetInt(input Input) (a int, err error)
- func GetMultipleOptions(input Input) ([]string, error)
- func GetOption(input Input) (a string, err error)
- func GetPassword(input Input) (a string, err error)
- func GetString(input Input) (a string, err error)
- func IsCIDR(val interface{}) error
- func IsCert(filepath interface{}) error
- func IsURL(val interface{}) error
- func PrintHelp(help Help) error
- type Help
- type Input
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxLength = func(length int) Validator { return Validator(survey.MaxLength(length)) }
Functions ¶
func Enabled ¶
func Enabled() bool
Enabled returns a boolean flag that indicates if the interactive mode is enabled.
func GetAddonParameter ¶ added in v1.2.7
func GetMultipleOptions ¶
Asks for multiple options selection
func GetPassword ¶
Gets password input from the command line
func IsCert ¶ added in v1.1.1
func IsCert(filepath interface{}) error
IsCert validates whether the given filepath is a valid cert file
Types ¶
type Validator ¶ added in v1.1.1
type Validator survey.Validator
func AvailabilityZonesCountValidator ¶ added in v1.2.5
func RegExpBoolean ¶ added in v1.1.2
func SubnetsCountValidator ¶ added in v1.2.4
SubnetsCountValidator get a slice of `[]core.OptionAnswer` as an interface. e.g. core.OptionAnswer { Value: subnet-04f67939f44a97dbe (us-west-2b), Index: 0 }
Click to show internal directories.
Click to hide internal directories.