utils

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzePushConsoleOutput added in v1.2.3

func AnalyzePushConsoleOutput(pushConsoleOutput string)

AnalyzePushConsoleOutput analyzes the output of 'odo push -o json' for the machine readable event push test above.

func DeleteLocalConfig added in v1.2.5

func DeleteLocalConfig(args ...string)

 DeleteLocalConfig helps user to delete local config files with flags

func ExecCommand added in v1.2.4

func ExecCommand(context, cmpName string)

ExecCommand executes odo exec with a command

func ExecCommandWithoutGroupUsingFlags added in v1.2.4

func ExecCommandWithoutGroupUsingFlags(projectDirPath, cmpName, namespace string)

ExecCommandWithoutGroupUsingFlags executes odo push with no command group using flags

func ExecDefaultDevfileCommands

func ExecDefaultDevfileCommands(projectDirPath, cmpName, namespace string)

ExecDefaultDevfileCommands executes the default devfile commands

func ExecMultipleDefaultsWithFlags added in v1.2.4

func ExecMultipleDefaultsWithFlags(projectDirPath, cmpName, namespace string)

ExecMultipleDefaultsWithFlags executes odo push with multiple default commands using flags

func ExecPushToTestFileChanges

func ExecPushToTestFileChanges(projectDirPath, cmpName, namespace string)

ExecPushToTestFileChanges executes odo push with and without a file change

func ExecPushToTestParent added in v1.2.5

func ExecPushToTestParent(projectDirPath, cmpName, namespace string)

func ExecPushWithForceFlag

func ExecPushWithForceFlag(projectDirPath, cmpName, namespace string)

ExecPushWithForceFlag executes odo push with a force flag

func ExecPushWithMultiLayerParent added in v1.2.5

func ExecPushWithMultiLayerParent(projectDirPath, cmpName, namespace string)

func ExecPushWithNewFileAndDir

func ExecPushWithNewFileAndDir(projectDirPath, cmpName, namespace, newFilePath, newDirPath string)

ExecPushWithNewFileAndDir executes odo push after creating a new file and dir

func ExecPushWithParentOverride added in v1.2.5

func ExecPushWithParentOverride(projectDirPath, cmpName, namespace string)

func ExecWithCustomCommand

func ExecWithCustomCommand(projectDirPath, cmpName, namespace string)

ExecWithCustomCommand executes odo push with a custom command

func ExecWithInvalidCommand added in v1.2.4

func ExecWithInvalidCommand(context, cmpName, pushTarget string)

ExecWithInvalidCommand executes odo exec with a invalid command

func ExecWithInvalidCommandGroup added in v1.2.4

func ExecWithInvalidCommandGroup(projectDirPath, cmpName, namespace string)

ExecWithInvalidCommandGroup executes odo push with an invalid command group

func ExecWithMissingBuildCommand

func ExecWithMissingBuildCommand(projectDirPath, cmpName, namespace string)

ExecWithMissingBuildCommand executes odo push with a missing build command

func ExecWithMissingRunCommand

func ExecWithMissingRunCommand(projectDirPath, cmpName, namespace string)

ExecWithMissingRunCommand executes odo push with a missing run command

func ExecWithMultipleOrNoDefaults added in v1.2.4

func ExecWithMultipleOrNoDefaults(projectDirPath, cmpName, namespace string)

ExecWithMultipleOrNoDefaults executes odo push with multiple or no default commands

func ExecWithRestartAttribute added in v1.2.1

func ExecWithRestartAttribute(projectDirPath, cmpName, namespace string)

ExecWithRestartAttribute executes odo push with a command attribute restart

func ExecWithWrongCustomCommand

func ExecWithWrongCustomCommand(projectDirPath, cmpName, namespace string)

ExecWithWrongCustomCommand executes odo push with a wrong custom command

func ExecWithoutCommand added in v1.2.4

func ExecWithoutCommand(context, cmpName string)

ExecWithoutCommand executes odo exec with no user command and fails

func OdoWatch added in v1.2.2

func OdoWatch(odoV1Watch OdoV1Watch, odoV2Watch OdoV2Watch, project, context, flag string, runner interface{}, platform string)

OdoWatch creates files, dir in the context and watches for the changes to be pushed Specify OdoV1Watch for odo version 1, OdoV2Watch for odo version 2(devfile) platform is either kube or docker

func OdoWatchWithDebug added in v1.2.5

func OdoWatchWithDebug(odoV2Watch OdoV2Watch, context, flag string)

OdoWatchWithDebug changes files in the context and watches for the changes to be pushed It checks if the push is in debug mode or not After a successful push with watch, it tries to start a debug session

Types

type OdoV1Watch added in v1.2.2

type OdoV1Watch struct {
	SrcType  string
	RouteURL string
	AppName  string
}

type OdoV2Watch added in v1.2.2

type OdoV2Watch struct {
	CmpName            string
	StringsToBeMatched []string
}

Jump to

Keyboard shortcuts

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