testutils

package
v0.0.0-...-5dac8ea Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockedClientSet

func GetMockedClientSet(k8APIObjects ...runtime.Object) *clients.Clientset

Returns a clientset where K8sClient and K8sRestClient are faked

func NewFakeNewSPDYExecutor

func NewFakeNewSPDYExecutor(
	responder func(method string, url *url.URL, options remotecommand.StreamOptions) ([]byte, []byte, error),
	execCreationErr error,
) func(config *rest.Config, method string, url *url.URL) (remotecommand.Executor, error)

Return a SPDYExectuor with stdout, stderr and an error embedded

Types

This section is empty.

Jump to

Keyboard shortcuts

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