newapp

package
v3.11.4-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const ExposeRecommendedName = "expose"

ExposeRecommendedName is the recommended command name to expose app.

View Source
const NewAppRecommendedCommandName = "new-app"

NewAppRecommendedCommandName is the recommended command name.

View Source
const RoutePollTimeout = 5 * time.Second

RoutePollTimoutSeconds sets how long new-app command waits for route host to be prepopulated

View Source
const StatusRecommendedName = "status"

StatusRecommendedName is the recommended command name.

Variables

This section is empty.

Functions

func CheckGitInstalled

func CheckGitInstalled(w io.Writer)

func CompleteAppConfig

func CompleteAppConfig(config *newcmd.AppConfig, f kcmdutil.Factory, c *cobra.Command, args []string) error

func HandleError

func HandleError(err error, baseName, commandName, commandPath string, config *newcmd.AppConfig, transformError func(err error, baseName, commandName, commandPath string, groups ErrorGroups, config *newcmd.AppConfig)) error

func NewCmdNewApplication

func NewCmdNewApplication(name, baseName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdNewApplication implements the OpenShift cli new-app command.

func SetAnnotations

func SetAnnotations(annotations map[string]string, result *newcmd.AppResult) error

func SetLabels

func SetLabels(labels map[string]string, result *newcmd.AppResult) error

func TransformRunError

func TransformRunError(err error, baseName, commandName, commandPath string, groups ErrorGroups, config *newcmd.AppConfig)

func UsageError

func UsageError(commandPath, format string, args ...interface{}) error

Types

type AppOptions

func NewAppOptions

func NewAppOptions(streams genericclioptions.IOStreams) *AppOptions

func (*AppOptions) Complete

func (o *AppOptions) Complete(baseName, commandName string, f kcmdutil.Factory, c *cobra.Command, args []string) error

Complete sets any default behavior for the command

func (*AppOptions) RunNewApp

func (o *AppOptions) RunNewApp() error

RunNewApp contains all the necessary functionality for the OpenShift cli new-app command

type ErrorGroup

type ErrorGroup struct {
	// contains filtered or unexported fields
}

type ErrorGroups

type ErrorGroups map[string]ErrorGroup

func (ErrorGroups) Add

func (g ErrorGroups) Add(group string, suggestion string, classification string, err error, errs ...error)

type ObjectGeneratorOptions

type ObjectGeneratorOptions struct {
	PrintFlags *genericclioptions.PrintFlags
	Action     bulk.BulkAction

	Config *newcmd.AppConfig

	BaseName    string
	CommandPath string
	CommandName string

	LogsForObject polymorphichelpers.LogsForObjectFunc
	Printer       printers.ResourcePrinter

	genericclioptions.IOStreams
}

func (*ObjectGeneratorOptions) Complete

func (o *ObjectGeneratorOptions) Complete(baseName, commandName string, f kcmdutil.Factory, c *cobra.Command, args []string) error

Complete sets all common default options for commands (new-app and new-build)

Jump to

Keyboard shortcuts

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