utils

package
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: 13 Imported by: 0

Documentation

Index

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 ExecPushWithMultiLayerParent

func ExecPushWithMultiLayerParent(projectDirPath, cmpName, namespace string, freePort int)

func ExecPushWithNewFileAndDir

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

ExecPushWithNewFileAndDir executes odo push after creating a new file and dir

func ExecPushWithParentOverride

func ExecPushWithParentOverride(projectDirPath, cmpName, namespace string, freePort int)

func ExecWithCustomCommand

func ExecWithCustomCommand(projectDirPath, cmpName, namespace string)

ExecWithCustomCommand executes odo push with a custom command

func ExecWithHotReload

func ExecWithHotReload(projectDirPath, cmpName, namespace string, hotReload bool)

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

func VerifyCatalogListComponent(output string, cmpName []string) error

VerifyCatalogListComponent verifies components inside wantOutput exists or not in both S2I Component list and Devfile Component list

Types

type OdoV1Watch

type OdoV1Watch struct {
	SrcType  string
	RouteURL string
	AppName  string
}

type OdoV2Watch

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