ui

package
Version: v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 12 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 EnterDevfileComponentName added in v1.1.2

func EnterDevfileComponentName(defaultComponentName string) string

EnterDevfileComponentName lets the user to specify the component name in the prompt

func EnterDevfileComponentNamespace added in v1.1.2

func EnterDevfileComponentNamespace(defaultComponentNamespace string) string

EnterDevfileComponentNamespace lets the user to specify the component namespace in the 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 SelectDevfileComponentType added in v1.1.2

func SelectDevfileComponentType(options []catalog.DevfileComponentType) string

SelectDevfileComponentType lets the user to select the devfile component type 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

func SelectStarterProject added in v1.2.6

func SelectStarterProject(projects []common.DevfileStarterProject) string

SelectStarterProject allows user to select starter project in the prompt

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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