Documentation
¶
Index ¶
- func ClientForClientsetAndResource(clientset *fake.Clientset, cache kube.SharedCache, crd crd.Crd, ...) *kube.ResourceClient
- func CreateMockResource(cs *fake.Clientset, namespace, name, dumbFieldValue string) error
- func DeleteMockResource(cs *fake.Clientset, namespace, name string) error
- func LockingSuite() bool
- func MockClientForNamespace(cache kube.SharedCache, namespaces []string) *kube.ResourceClient
- func ZeroResourceVersion(resource resources.Resource)
- func ZeroResourceVersions(resources ...resources.Resource)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientForClientsetAndResource ¶
func ClientForClientsetAndResource(clientset *fake.Clientset, cache kube.SharedCache, crd crd.Crd, res resources.InputResource, namespaces []string) *kube.ResourceClient
func CreateMockResource ¶
func CreateMockResource(cs *fake.Clientset, namespace, name, dumbFieldValue string) error
func DeleteMockResource ¶
func DeleteMockResource(cs *fake.Clientset, namespace, name string) error
func LockingSuite ¶
func LockingSuite() bool
call this function with a var _ = in the test suite file tests will panic if there's a previously defined BeforeSuite or AfterSuite
func MockClientForNamespace ¶
func MockClientForNamespace(cache kube.SharedCache, namespaces []string) *kube.ResourceClient
func ZeroResourceVersion ¶
func ZeroResourceVersion(resource resources.Resource)
func ZeroResourceVersions ¶
func ZeroResourceVersions(resources ...resources.Resource)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.