test

package
v0.0.0-...-8540d8e Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeClient

func NewFakeClient(initObjs ...runtime.Object) client.Client

NewFakeClient ---.

Types

type FakeClient

type FakeClient struct {
	controller.Client
	kubernetes.Interface
	// contains filtered or unexported fields
}

FakeClient ---.

func (*FakeClient) Discovery

func (c *FakeClient) Discovery() discovery.DiscoveryInterface

func (*FakeClient) GetConfig

func (c *FakeClient) GetConfig() *rest.Config

func (*FakeClient) GetCurrentNamespace

func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)

func (*FakeClient) GetScheme

func (c *FakeClient) GetScheme() *runtime.Scheme

GetScheme ---.

func (*FakeClient) Patch

Patch mimicks patch for server-side apply and simply creates the obj.

func (*FakeClient) ScalesClient

func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)

type FakeDiscovery

type FakeDiscovery struct {
	discovery.DiscoveryInterface
}

func (*FakeDiscovery) ServerResourcesForGroupVersion

func (f *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)

Jump to

Keyboard shortcuts

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