mocks

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveStateCache

type LiveStateCache struct {
	mock.Mock
}

LiveStateCache is an autogenerated mock type for the LiveStateCache type

func (*LiveStateCache) GetClusterCache added in v1.6.0

func (_m *LiveStateCache) GetClusterCache(server string) (cache.ClusterCache, error)

GetClusterCache provides a mock function with given fields: server

func (*LiveStateCache) GetClustersInfo added in v1.4.0

func (_m *LiveStateCache) GetClustersInfo() []cache.ClusterInfo

GetClustersInfo provides a mock function with given fields:

func (*LiveStateCache) GetManagedLiveObjs

func (_m *LiveStateCache) GetManagedLiveObjs(a *v1alpha1.Application, targetObjs []*unstructured.Unstructured) (map[kube.ResourceKey]*unstructured.Unstructured, error)

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

func (*LiveStateCache) GetNamespaceTopLevelResources added in v1.2.4

func (_m *LiveStateCache) GetNamespaceTopLevelResources(server string, namespace string) (map[kube.ResourceKey]v1alpha1.ResourceNode, error)

GetNamespaceTopLevelResources provides a mock function with given fields: server, namespace

func (*LiveStateCache) GetVersionsInfo added in v1.5.0

func (_m *LiveStateCache) GetVersionsInfo(serverURL string) (string, []v1.APIGroup, error)

GetVersionsInfo provides a mock function with given fields: serverURL

func (*LiveStateCache) Init added in v1.6.0

func (_m *LiveStateCache) Init() error

Init provides a mock function with given fields:

func (*LiveStateCache) IsNamespaced

func (_m *LiveStateCache) IsNamespaced(server string, gk schema.GroupKind) (bool, error)

IsNamespaced provides a mock function with given fields: server, gk

func (*LiveStateCache) IterateHierarchy added in v1.0.0

func (_m *LiveStateCache) IterateHierarchy(server string, key kube.ResourceKey, action func(v1alpha1.ResourceNode, string)) error

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

func (*LiveStateCache) Run

func (_m *LiveStateCache) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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