exec

package
v1.2.5 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: 12 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, consoleOutputStdout *io.PipeWriter, consoleOutputStderr *io.PipeWriter) (err error)

ExecuteCommand executes the given command in the pod's container

func ExecuteCompositeDevfileAction added in v1.2.5

func ExecuteCompositeDevfileAction(client ExecClient, composite common.Composite, commandsMap map[string]common.DevfileCommand, compInfo adaptersCommon.ComponentInfo, show bool, machineEventLogger machineoutput.MachineEventLoggingClient) (err error)

ExecuteCompositeDevfileAction executes a given composite command in a devfile The composite command may reference exec commands, composite commands, or both

func ExecuteDevfileCommandSynchronously added in v1.2.4

func ExecuteDevfileCommandSynchronously(client ExecClient, exec common.Exec, commandName string, compInfo adaptersCommon.ComponentInfo, show bool, machineEventLogger machineoutput.MachineEventLoggingClient, noSpin bool) error

ExecuteDevfileCommandSynchronously executes the devfile init, build and test command actions synchronously

func ExecuteDevfileDebugAction added in v1.2.3

func ExecuteDevfileDebugAction(client ExecClient, exec common.Exec, commandName string, compInfo adaptersCommon.ComponentInfo, show bool, machineEventLogger machineoutput.MachineEventLoggingClient) error

ExecuteDevfileDebugAction executes the devfile debug command action using the supervisord debugrun program

func ExecuteDevfileDebugActionWithoutRestart added in v1.2.3

func ExecuteDevfileDebugActionWithoutRestart(client ExecClient, exec common.Exec, commandName string, compInfo adaptersCommon.ComponentInfo, show bool, machineEventLogger machineoutput.MachineEventLoggingClient) error

ExecuteDevfileDebugActionWithoutRestart executes devfile run command without restarting.

func ExecuteDevfileRunAction added in v1.2.0

func ExecuteDevfileRunAction(client ExecClient, exec common.Exec, commandName string, compInfo adaptersCommon.ComponentInfo, show bool, machineEventLogger machineoutput.MachineEventLoggingClient) error

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

func ExecuteDevfileRunActionWithoutRestart added in v1.2.1

func ExecuteDevfileRunActionWithoutRestart(client ExecClient, exec common.Exec, commandName string, compInfo adaptersCommon.ComponentInfo, show bool, machineEventLogger machineoutput.MachineEventLoggingClient) 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
}

ExecClient is a wrapper around ExecCMDInContainer which executes a command in a specific container of a pod.

Jump to

Keyboard shortcuts

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