test

package
v0.0.0-...-83b2bd0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCommandExecutor

type FakeCommandExecutor struct {
	Command       string
	CommandResult map[string]string
}

FakeCommandExecutor - fake command executor

func GetFakeCommandExecutor

func GetFakeCommandExecutor() *FakeCommandExecutor

GetFakeCommandExecutor - get fake command executor

func (*FakeCommandExecutor) Stream

Stream - stream command result

type FakeFactory

type FakeFactory struct {
	// contains filtered or unexported fields
}

FakeFactory - fake factory

func GetFakeFactory

func GetFakeFactory(helmReleases []*release.Release, objs []runtime.Object,
	gvrToListKind map[schema.GroupVersionResource]string, resources []*metav1.APIResourceList) *FakeFactory

GetFakeFactory - get fake factory

func (*FakeFactory) GetClientSet

func (f *FakeFactory) GetClientSet() (kubernetes.Interface, error)

GetClientSet - get clientset

func (*FakeFactory) GetCommandExecutor

func (f *FakeFactory) GetCommandExecutor(pod *corev1.Pod, container string, command []string, stdout io.Writer, stderr io.Writer) (remotecommand.Executor, error)

GetCommandExecutor - execute command in a Pod

func (*FakeFactory) GetHelmClient

func (f *FakeFactory) GetHelmClient(namespace string) (helm.Client, error)

GetHelmClient - get helm client

func (*FakeFactory) GetK8sClientset

func (f *FakeFactory) GetK8sClientset() (kubernetes.Interface, error)

GetK8sClientset - get k8s clientset

func (*FakeFactory) GetK8sDynamicClient

func (f *FakeFactory) GetK8sDynamicClient() (dynamic.Interface, error)

GetK8sDynamicClient - get k8s dynamic client

func (*FakeFactory) GetRestConfig

func (f *FakeFactory) GetRestConfig() (*rest.Config, error)

GetRestConfig - get rest config

func (*FakeFactory) GetRuntimeClient

func (f *FakeFactory) GetRuntimeClient(scheme *runtime.Scheme) (client.Client, error)

GetRuntimeClient - get runtime client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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