exec

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: 10 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 ExecuteDevfileBuildAction added in v1.2.0

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

ExecuteDevfileBuildAction executes the devfile build command action

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