executor

package
v0.0.0-...-300c491 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugExecOptions

type DebugExecOptions struct {
	ContainerID  string
	Command      string
	CommandSlice []string
	Image        string

	TargetHost string
	TargetPort int

	StandardCmdOpts
}

type DebugExecutor

type DebugExecutor interface {
	Execute(ctx context.Context, options DebugExecOptions) error
}

RemoteExecutor is the debug executor interface

func NewDebugExecutor

func NewDebugExecutor(config *rest.Config) DebugExecutor

NewDebugExecutor returns a debugExecutor

type PodExecOptions

type PodExecOptions struct {
	Namespace string
	Name      string
	Container string
	Command   string

	StandardCmdOpts
}

type PodExecutor

type PodExecutor interface {
	Execute(ctx context.Context, options PodExecOptions) error
}

PodExecutor is the pod executor interface

func NewPodExecutor

func NewPodExecutor(config *rest.Config) PodExecutor

NewPodExecutor returns a podExecutor

type StandardCmdOpts

type StandardCmdOpts struct {
	StdOut, StdErr *bytes.Buffer
}

Jump to

Keyboard shortcuts

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