exec

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(client ExecClient, compInfo common.ComponentInfo, command []string, show bool) (err error)

ExecuteCommand executes the given command in the pod's container

func ExecuteDevfileBuildAction added in v1.2.0

func ExecuteDevfileBuildAction(client ExecClient, action common.DevfileCommandAction, commandName string, compInfo adaptersCommon.ComponentInfo, show bool) error

ExecuteDevfileBuildAction executes the devfile build command action

func ExecuteDevfileRunAction added in v1.2.0

func ExecuteDevfileRunAction(client ExecClient, action common.DevfileCommandAction, commandName string, compInfo adaptersCommon.ComponentInfo, show bool) error

ExecuteDevfileRunAction executes the devfile run command action using the supervisord devrun program

func ExecuteDevfileRunActionWithoutRestart added in v1.2.1

func ExecuteDevfileRunActionWithoutRestart(client ExecClient, action common.DevfileCommandAction, commandName string, compInfo adaptersCommon.ComponentInfo, show bool) error

ExecuteDevfileRunActionWithoutRestart executes devfile run command without restarting.

Types

type ExecClient

type ExecClient interface {
	ExecCMDInContainer(common.ComponentInfo, []string, io.Writer, io.Writer, io.Reader, bool) error
}

Jump to

Keyboard shortcuts

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