Documentation
¶
Index ¶
- Constants
- func CheckGitInstalled(w io.Writer)
- func CompleteAppConfig(config *newcmd.AppConfig, f kcmdutil.Factory, c *cobra.Command, args []string) error
- func HandleError(err error, baseName, commandName, commandPath string, config *newcmd.AppConfig, ...) error
- func NewCmdNewApplication(name, baseName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func SetAnnotations(annotations map[string]string, result *newcmd.AppResult) error
- func SetLabels(labels map[string]string, result *newcmd.AppResult) error
- func TransformRunError(err error, baseName, commandName, commandPath string, groups ErrorGroups, ...)
- func UsageError(commandPath, format string, args ...interface{}) error
- type AppOptions
- type ErrorGroup
- type ErrorGroups
- type ObjectGeneratorOptions
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 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 ¶
type AppOptions struct {
*ObjectGeneratorOptions
RESTClientGetter genericclioptions.RESTClientGetter
genericclioptions.IOStreams
}
func NewAppOptions ¶
func NewAppOptions(streams genericclioptions.IOStreams) *AppOptions
type ErrorGroup ¶
type ErrorGroup struct {
// contains filtered or unexported fields
}
type ErrorGroups ¶
type ErrorGroups map[string]ErrorGroup
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
}
Click to show internal directories.
Click to hide internal directories.