exec

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 22 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 internal.CommandExecutor,
	factoryMode internal.ExecPodVolumeMode,
	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 internal.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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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