Documentation ¶
Index ¶
- func DefaultKubernetesExecutor() exec.RemoteExecutor
- func DockerExecutor(ctx context.Context, opts DockerExecOptions) error
- func FakeKubernetesExecutor() exec.RemoteExecutor
- func KubernetesExecutor(k KubernetesExecOptions) error
- func LocalExecutor(opts LocalExecOptions) *exec.Cmd
- type DockerExecOptions
- type KubernetesExecOptions
- type LocalExecOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultKubernetesExecutor ¶
func DefaultKubernetesExecutor() exec.RemoteExecutor
DefaultKubernetesExecutor is a convenience method so we don't have to import all of the k8s packages to do this
func DockerExecutor ¶
func DockerExecutor(ctx context.Context, opts DockerExecOptions) error
DockerExecutor executes the task in a docker container
func FakeKubernetesExecutor ¶
func FakeKubernetesExecutor() exec.RemoteExecutor
FakeKubernetesExecutor is a convenience method for testing purposes
func KubernetesExecutor ¶
func KubernetesExecutor(k KubernetesExecOptions) error
KubernetesExecutor runs a command in a container in a pod
func LocalExecutor ¶
func LocalExecutor(opts LocalExecOptions) *exec.Cmd
LocalExecutor executes the task locally
Types ¶
type DockerExecOptions ¶
type DockerExecOptions struct { Command []string Binds []string Ports []string ContainerName string KillTimeout string Image string Dir string Environment map[string]string NetworkMode string InheritParentEnv bool AttachStdIn bool Privileged bool Detach bool Stdin io.Reader Stdout io.Writer Stderr io.Writer }
DockerExecOptions for executing a command
type KubernetesExecOptions ¶
type KubernetesExecOptions struct { Factory cmdutil.Factory Pod *corev1.Pod Executor exec.RemoteExecutor ContainerName string Command []string Stdin bool TTY bool Quiet bool IOStreams genericclioptions.IOStreams GetPodTimeout time.Duration }
KubernetesExecOptions for executing a command in a container in a pod
Click to show internal directories.
Click to hide internal directories.