Documentation ¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- Variables
- type AskMultipleSelection
- type AskOpen
- type AskSelection
- type AskYesNo
- type Input
- func (i *Input) AskMultipleSelection(question *AskMultipleSelection) (responseSlice []string, err error)
- func (i *Input) AskOpen(question *AskOpen) (response string, err error)
- func (i *Input) AskSelection(question *AskSelection) (int, error)
- func (i *Input) AskYesNo(question *AskYesNo) (bool, error)
- func (i *Input) Askf(format string, a ...interface{}) (string, error)
- func (i *Input) Close()
- func (i *Input) Warn(a ...interface{})
- func (i *Input) Warnf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var RegexpClusterName = regexp.MustCompile("^[a-z0-9]+$")
View Source
var RegexpDNS = regexp.MustCompile("^[a-z0-9-\\.]+$")
View Source
var RegexpEnvironmentName = regexp.MustCompile("^[a-z0-9]+$")
View Source
var RegexpProviderName = regexp.MustCompile("^[a-z0-9-]+$")
Functions ¶
This section is empty.
Types ¶
type AskMultipleSelection ¶
type AskMultipleSelection struct { AskSelection *AskSelection SelectedChoices []bool MinSelected int MaxSelected int }
func (*AskMultipleSelection) Question ¶
func (q *AskMultipleSelection) Question() string
type AskSelection ¶
func (*AskSelection) Question ¶
func (q *AskSelection) Question() string
type Input ¶
type Input struct { Prompt string // contains filtered or unexported fields }
func (*Input) AskMultipleSelection ¶
func (i *Input) AskMultipleSelection(question *AskMultipleSelection) (responseSlice []string, err error)
func (*Input) AskSelection ¶
func (i *Input) AskSelection(question *AskSelection) (int, error)
Click to show internal directories.
Click to hide internal directories.