fake

package
v2.11.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	StreamF func(
		ctx context.Context,
		podSelector metav1.ListOptions,
		execOpts corev1.PodExecOptions,
		streamOpts remotecommand.StreamOptions,
	) error
}

Fake is a fake ExecStreamer. The StreamF method should be replaced.

func Get

func Get(ctx context.Context) *Fake

Get returns the Fake that is injected into the context.

func (*Fake) Stream

func (f *Fake) Stream(
	ctx context.Context,
	podSelector metav1.ListOptions,
	execOpts corev1.PodExecOptions,
	streamOpts remotecommand.StreamOptions,
) error

Jump to

Keyboard shortcuts

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