fake

package
v0.21.12-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 206

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDynamicClient

type FakeDynamicClient struct {
	testing.Fake
	// contains filtered or unexported fields
}

Clientset implements clientset.Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.

func NewSimpleDynamicClient

func NewSimpleDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object) *FakeDynamicClient

func NewSimpleDynamicClientWithCustomListKinds added in v0.20.0

func NewSimpleDynamicClientWithCustomListKinds(scheme *runtime.Scheme, gvrToListKind map[schema.GroupVersionResource]string, objects ...runtime.Object) *FakeDynamicClient

NewSimpleDynamicClientWithCustomListKinds try not to use this. In general you want to have the scheme have the List types registered and allow the default guessing for resources match. Sometimes that doesn't work, so you can specify a custom mapping here.

func (*FakeDynamicClient) Resource

Jump to

Keyboard shortcuts

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