Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterCache

type ClusterCache struct {
	mock.Mock
}

ClusterCache is an autogenerated mock type for the ClusterCache type

func NewClusterCache

func NewClusterCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterCache

NewClusterCache creates a new instance of ClusterCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClusterCache) EnsureSynced

func (_m *ClusterCache) EnsureSynced() error

EnsureSynced provides a mock function with given fields:

func (*ClusterCache) FindResources

func (_m *ClusterCache) FindResources(namespace string, predicates ...func(*cache.Resource) bool) map[kube.ResourceKey]*cache.Resource

FindResources provides a mock function with given fields: namespace, predicates

func (*ClusterCache) GetAPIResources

func (_m *ClusterCache) GetAPIResources() []kube.APIResourceInfo

GetAPIResources provides a mock function with given fields:

func (*ClusterCache) GetClusterInfo

func (_m *ClusterCache) GetClusterInfo() cache.ClusterInfo

GetClusterInfo provides a mock function with given fields:

func (*ClusterCache) GetGVKParser

func (_m *ClusterCache) GetGVKParser() *managedfields.GvkParser

GetGVKParser provides a mock function with given fields:

func (*ClusterCache) GetManagedLiveObjs

func (_m *ClusterCache) GetManagedLiveObjs(targetObjs []*unstructured.Unstructured, isManaged func(*cache.Resource) bool) (map[kube.ResourceKey]*unstructured.Unstructured, error)

GetManagedLiveObjs provides a mock function with given fields: targetObjs, isManaged

func (*ClusterCache) GetOpenAPISchema

func (_m *ClusterCache) GetOpenAPISchema() openapi.Resources

GetOpenAPISchema provides a mock function with given fields:

func (*ClusterCache) GetServerVersion

func (_m *ClusterCache) GetServerVersion() string

GetServerVersion provides a mock function with given fields:

func (*ClusterCache) Invalidate

func (_m *ClusterCache) Invalidate(opts ...cache.UpdateSettingsFunc)

Invalidate provides a mock function with given fields: opts

func (*ClusterCache) IsNamespaced

func (_m *ClusterCache) IsNamespaced(gk schema.GroupKind) (bool, error)

IsNamespaced provides a mock function with given fields: gk

func (*ClusterCache) IterateHierarchy

func (_m *ClusterCache) IterateHierarchy(key kube.ResourceKey, action func(*cache.Resource, map[kube.ResourceKey]*cache.Resource) bool)

IterateHierarchy provides a mock function with given fields: key, action

func (*ClusterCache) IterateHierarchyV2

func (_m *ClusterCache) IterateHierarchyV2(keys []kube.ResourceKey, action func(*cache.Resource, map[kube.ResourceKey]*cache.Resource) bool)

IterateHierarchyV2 provides a mock function with given fields: keys, action

func (*ClusterCache) OnEvent

func (_m *ClusterCache) OnEvent(handler cache.OnEventHandler) cache.Unsubscribe

OnEvent provides a mock function with given fields: handler

func (*ClusterCache) OnResourceUpdated

func (_m *ClusterCache) OnResourceUpdated(handler cache.OnResourceUpdatedHandler) cache.Unsubscribe

OnResourceUpdated provides a mock function with given fields: handler

Jump to

Keyboard shortcuts

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