exec

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandExecutor

func NewCommandExecutor(cli client.Client, clientSet kubernetes.Interface, coreV1RestClient rest.Interface) *defaultCommandExecutor

NewCommandExecutor creates a new instance of NewCommandExecutor

func NewExecPod

func NewExecPod(
	client client.Client,
	executor cloudogu.CommandExecutor,
	doguResource *k8sv1.Dogu,
	dogu *core.Dogu,
	podName string,
) (*execPod, error)

NewExecPod creates a new ExecPod that enables command execution towards a pod.

func NewExecPodFactory

func NewExecPodFactory(client client.Client, config *rest.Config, executor cloudogu.CommandExecutor) *defaultExecPodFactory

NewExecPodFactory creates a new ExecPodFactory.

func NewPodFileExtractor

func NewPodFileExtractor(k8sClient client.Client, restConfig *rest.Config, clientSet kubernetes.Interface) *podFileExtractor

NewPodFileExtractor creates a new pod file extractor that fetches files from a pod's container.

func NewShellCommand

func NewShellCommand(command string, args ...string) *shellCommand

NewShellCommand creates a new shellCommand. While the command is mandatory, there can be zero to n command arguments.

func NewShellCommandWithStdin added in v0.32.0

func NewShellCommandWithStdin(stdin io.Reader, command string, args ...string) *shellCommand

Types

This section is empty.

Jump to

Keyboard shortcuts

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