utils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 11 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 ExecDefaultDevfileCommands

func ExecDefaultDevfileCommands(projectDirPath, cmpName, namespace string)

ExecDefaultDevfileCommands executes the default devfile commands

func ExecPushToTestFileChanges

func ExecPushToTestFileChanges(projectDirPath, cmpName, namespace string)

ExecPushToTestFileChanges executes odo push with and without a file change

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 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 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 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

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