Documentation ¶
Index ¶
- func AnalyzePushConsoleOutput(pushConsoleOutput string)
- func DeleteLocalConfig(args ...string)
- func ExecCommand(context, cmpName string)
- func ExecCommandWithoutComponentAndDevfileFlag(context, cmpName string)
- func ExecCommandWithoutGroupUsingFlags(projectDirPath, cmpName, namespace string)
- func ExecDefaultDevfileCommands(projectDirPath, cmpName, namespace string)
- func ExecMultipleDefaultsWithFlags(projectDirPath, cmpName, namespace string)
- func ExecPushToTestFileChanges(projectDirPath, cmpName, namespace string)
- func ExecPushToTestParent(projectDirPath, cmpName, namespace string)
- func ExecPushWithForceFlag(projectDirPath, cmpName, namespace string)
- func ExecPushWithMultiLayerParent(projectDirPath, cmpName, namespace string, freePort int)
- func ExecPushWithNewFileAndDir(projectDirPath, cmpName, namespace, newFilePath, newDirPath string)
- func ExecPushWithParentOverride(projectDirPath, cmpName, namespace string, freePort int)
- func ExecWithCustomCommand(projectDirPath, cmpName, namespace string)
- func ExecWithHotReload(projectDirPath, cmpName, namespace string, hotReload bool)
- func ExecWithInvalidCommand(context, cmpName, pushTarget string)
- func ExecWithInvalidCommandGroup(projectDirPath, cmpName, namespace string)
- func ExecWithMissingBuildCommand(projectDirPath, cmpName, namespace string)
- func ExecWithMissingRunCommand(projectDirPath, cmpName, namespace string)
- func ExecWithMultipleOrNoDefaults(projectDirPath, cmpName, namespace string)
- func ExecWithWrongCustomCommand(projectDirPath, cmpName, namespace string)
- func ExecWithoutCommand(context, cmpName string)
- func OdoWatch(odoV1Watch OdoV1Watch, odoV2Watch OdoV2Watch, project, context, flag string, ...)
- func OdoWatchWithDebug(odoV2Watch OdoV2Watch, context, flag string)
- func VerifyCatalogListComponent(output string, cmpName []string) error
- type OdoV1Watch
- type OdoV2Watch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzePushConsoleOutput ¶
func AnalyzePushConsoleOutput(pushConsoleOutput string)
AnalyzePushConsoleOutput analyzes the output of 'odo push -o json' for the machine readable event push test above.
func DeleteLocalConfig ¶
func DeleteLocalConfig(args ...string)
DeleteLocalConfig helps user to delete local config files with flags
func ExecCommand ¶
func ExecCommand(context, cmpName string)
ExecCommand executes odo exec with a command
func ExecCommandWithoutComponentAndDevfileFlag ¶
func ExecCommandWithoutComponentAndDevfileFlag(context, cmpName string)
ExecCommandWithoutComponentAndDevfileFlag executes odo exec without a component and with a devfile flag
func ExecCommandWithoutGroupUsingFlags ¶
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 ¶
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 ¶
func ExecPushToTestParent(projectDirPath, cmpName, namespace string)
func ExecPushWithForceFlag ¶
func ExecPushWithForceFlag(projectDirPath, cmpName, namespace string)
ExecPushWithForceFlag executes odo push with a force flag
func ExecPushWithNewFileAndDir ¶
func ExecPushWithNewFileAndDir(projectDirPath, cmpName, namespace, newFilePath, newDirPath string)
ExecPushWithNewFileAndDir executes odo push after creating a new file and dir
func ExecWithCustomCommand ¶
func ExecWithCustomCommand(projectDirPath, cmpName, namespace string)
ExecWithCustomCommand executes odo push with a custom command
func ExecWithHotReload ¶
ExecWithHotReload executes odo push with hot reload true
func ExecWithInvalidCommand ¶
func ExecWithInvalidCommand(context, cmpName, pushTarget string)
ExecWithInvalidCommand executes odo exec with a invalid command
func ExecWithInvalidCommandGroup ¶
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 ¶
func ExecWithMultipleOrNoDefaults(projectDirPath, cmpName, namespace string)
ExecWithMultipleOrNoDefaults executes odo push with multiple or no default commands
func ExecWithWrongCustomCommand ¶
func ExecWithWrongCustomCommand(projectDirPath, cmpName, namespace string)
ExecWithWrongCustomCommand executes odo push with a wrong custom command
func ExecWithoutCommand ¶
func ExecWithoutCommand(context, cmpName string)
ExecWithoutCommand executes odo exec with no user command and fails
func OdoWatch ¶
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 ¶
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
func VerifyCatalogListComponent ¶
VerifyCatalogListComponent verifies components inside wantOutput exists or not in both S2I Component list and Devfile Component list