ui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnterCPU

func EnterCPU(typeStr string, defaultValue string) string

EnterCPU allows the user to specify the cpu limits to be used in a prompt

func EnterComponentName

func EnterComponentName(defaultName string, context *genericclioptions.Context) string

EnterComponentName allows the user to specify the component name in a prompt

func EnterEnvVars

func EnterEnvVars() []string

EnterEnvVars allows the user to specify the environment variables to be used in a prompt

func EnterGitInfo

func EnterGitInfo() (string, string)

EnterGitInfo will display two prompts, one of the URL of the project and one of the ref

func EnterInputTypePath

func EnterInputTypePath(inputType string, currentDir string, defaultPath ...string) string

EnterInputTypePath allows the user to specify the path on the filesystem in a prompt

func EnterMemory

func EnterMemory(typeStr string, defaultValue string) string

EnterMemory allows the user to specify the memory limits to be used in a prompt

func EnterOpenshiftName added in v1.0.0

func EnterOpenshiftName(defaultName string, message string, context *genericclioptions.Context) string

EnterOpenshiftName allows the user to specify the app name in a prompt

func EnterPorts

func EnterPorts() []string

EnterPorts allows the user to specify the ports to be used in a prompt

func SelectComponentType

func SelectComponentType(options []catalog.ComponentType) string

SelectComponentType lets the user to select the builder image (name only) in the prompt

func SelectImageTag

func SelectImageTag(options []catalog.ComponentType, selectedComponentType string) string

SelectImageTag lets the user to select a specific tag for the previously selected builder image in a prompt

func SelectSourceType

func SelectSourceType(sourceTypes []config.SrcType) config.SrcType

SelectSourceType lets the user select a specific config.SrcType in a prompty

Types

This section is empty.

Jump to

Keyboard shortcuts

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