Documentation ¶
Index ¶
- func AskOne(p survey.Prompt, response interface{}, v survey.Validator, ...) error
- func ChooseBool(message string, target *bool) error
- func ChooseFromList(message string, choice *string, options []string) error
- func Contains(a []string, s string) bool
- func EnsureCsv(message string, source string, target *[]string, staticMode bool) error
- func EnsureKVCsv(message string, source string, target *map[string]string, staticMode bool) error
- func GetBoolInput(msg string, value *bool) error
- func GetBoolInputDefault(msg string, value *bool, defaultValue bool) error
- func GetFreePort() (int, error)
- func GetIngressHost(ctx context.Context, proxyName, proxyNamespace, proxyPort string, ...) (string, error)
- func GetLogger() io.Writer
- func GetLogsPath() string
- func GetResource(uri string) (io.ReadCloser, error)
- func GetStringInput(msg string, value *string) error
- func GetStringInputDefault(msg string, value *string, defaultValue string) error
- func GetStringInputDefaultLazyPrompt(msgProvider func() string, value *string, defaultValue string) error
- func GetStringInputLazyPrompt(msgProvider func() string, value *string) error
- func GetStringSliceInput(msg string, value *[]string) error
- func GetStringSliceInputLazyPrompt(msgProvider func() string, value *[]string) error
- func GetUint32Input(msg string, value *uint32) error
- func GetUint32InputDefault(msg string, value *uint32, defaultValue uint32) error
- func GetYesInput(msg string) (bool, error)
- func Initialize() error
- func MultiChooseFromList(message string, choices *[]string, options []string) error
- func PortForward(ctx context.Context, namespace string, resource string, localPort string, ...) (portforward.PortForwarder, error)
- func PortForwardGet(ctx context.Context, namespace string, resource string, localPort string, ...) (string, portforward.PortForwarder, error)
- func SelectJoinedData(message string, target *string, list []JoinerData) error
- func UseStdio(io terminal.Stdio)
- type JoinerData
- type JoinerDataSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChooseBool ¶
func EnsureKVCsv ¶
Expected format of source: k1,v1,k2,v2
func GetBoolInput ¶
func GetBoolInputDefault ¶
func GetFreePort ¶ added in v1.3.13
func GetIngressHost ¶ added in v0.13.8
func GetIngressHost(ctx context.Context, proxyName, proxyNamespace, proxyPort string, localCluster bool, clusterName string) (string, error)
GetIngressHost returns the host address of the ingress
func GetLogsPath ¶ added in v0.13.3
func GetLogsPath() string
func GetResource ¶
func GetResource(uri string) (io.ReadCloser, error)
GetResource identified by the given URI. The URI can either be a http(s) address or a relative/absolute file path.
func GetStringInput ¶
func GetStringInputDefault ¶
func GetStringInputDefaultLazyPrompt ¶ added in v0.18.0
func GetStringInputLazyPrompt ¶ added in v0.18.0
func GetStringSliceInput ¶
func GetStringSliceInputLazyPrompt ¶ added in v0.18.0
func GetUint32Input ¶
func GetUint32InputDefault ¶
func GetYesInput ¶
func Initialize ¶ added in v0.13.3
func Initialize() error
func MultiChooseFromList ¶ added in v0.18.1
func PortForward ¶ added in v1.3.13
func PortForward(ctx context.Context, namespace string, resource string, localPort string, kubePort string, verbose bool) (portforward.PortForwarder, error)
PortForward call kubectl port-forward. Callers are expected to clean up the returned portFwd *exec.cmd after the port-forward is no longer needed. Deprecated: Prefer portforward.NewPortForwarder
func PortForwardGet ¶ added in v1.3.13
func PortForwardGet(ctx context.Context, namespace string, resource string, localPort string, kubePort string, verbose bool, getPath string) (string, portforward.PortForwarder, error)
PortForwardGet call kubectl port-forward and make a GET request. Callers are expected to clean up the returned portforward.PortForwarder after the port-forward is no longer needed. Deprecated: Prefer portforward.NewPortForwarder
func SelectJoinedData ¶
func SelectJoinedData(message string, target *string, list []JoinerData) error
Types ¶
type JoinerData ¶
type JoinerDataSlice ¶
type JoinerDataSlice []JoinerData
Click to show internal directories.
Click to hide internal directories.