cliClient

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 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