cliClient

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextWithCliClientBuilder

func NewContextWithCliClientBuilder(ctx context.Context, client PodCLIBuilder) context.Context

func NewPodCliFromContext

func NewPodCliFromContext(ctx context.Context, namespace string, pod string, container string) cli.CommandExecutor

Types

type ExecOptions

type ExecOptions struct {
	Command []string

	Namespace     string
	PodName       string
	ContainerName string

	Stdin         io.Reader
	CaptureStdout bool
	CaptureStderr bool

	// If false, whitespace in std{err,out} will be removed.
	PreserveWhitespace bool
}

ExecOptions passed to ExecWithOptions

type PodCLIBuilder

type PodCLIBuilder interface {
	Build(ctx context.Context, namespace string, pod string, container string) cli.CommandExecutor
}

Jump to

Keyboard shortcuts

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