helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupFakeClientReactions

func CleanupFakeClientReactions(clientInterface interface{})

func FakeReaction

func FakeReaction(clientInterface interface{}, action string, resourcesToReact []string, inputResources map[string]runtime.Object, apiErrors map[string]error)

func GetActionsCount

func GetActionsCount(fakeStruct *gotesting.Fake, countActions []string) map[string]int

func GetClientBuilder

func GetClientBuilder() *fakeclient.ClientBuilder

func GetClientBuilderWithObjects

func GetClientBuilderWithObjects(objects ...client.Object) *fakeclient.ClientBuilder

func GetFakeClaimclient

func GetFakeClaimclient(objects ...runtime.Object) claimClient.Interface

func GetFakeClientForInterface

func GetFakeClientForInterface(clientInterface interface{}) *gotesting.Fake

func GetFakeKubeclient

func GetFakeKubeclient(objects ...runtime.Object) kubernetes.Interface

func GetFakeLcmclient

func GetFakeLcmclient(objects ...runtime.Object) lcmclient.Interface

func GetFakeRookclient

func GetFakeRookclient(objects ...runtime.Object) rookclient.Interface

func GetObjectForCompareFromList

func GetObjectForCompareFromList(objToCompare runtime.Object, listWithItems runtime.Object) (runtime.Object, error)

func PrepareExpectedResources

func PrepareExpectedResources(input map[string]runtime.Object, output map[string]runtime.Object) map[string]runtime.Object

Types

This section is empty.

Jump to

Keyboard shortcuts

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