Documentation ¶
Index ¶
- type LiveStateCache
- func (_m *LiveStateCache) GetClustersInfo() []metrics.ClusterInfo
- func (_m *LiveStateCache) GetManagedLiveObjs(a *v1alpha1.Application, targetObjs []*unstructured.Unstructured) (map[kube.ResourceKey]*unstructured.Unstructured, error)
- func (_m *LiveStateCache) GetNamespaceTopLevelResources(server string, namespace string) (map[kube.ResourceKey]v1alpha1.ResourceNode, error)
- func (_m *LiveStateCache) GetVersionsInfo(serverURL string) (string, []v1.APIGroup, error)
- func (_m *LiveStateCache) Invalidate()
- func (_m *LiveStateCache) IsNamespaced(server string, gk schema.GroupKind) (bool, error)
- func (_m *LiveStateCache) IterateHierarchy(server string, key kube.ResourceKey, ...) error
- func (_m *LiveStateCache) Run(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiveStateCache ¶
LiveStateCache is an autogenerated mock type for the LiveStateCache type
func (*LiveStateCache) GetClustersInfo ¶ added in v1.4.0
func (_m *LiveStateCache) GetClustersInfo() []metrics.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.3.0
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
GetVersionsInfo provides a mock function with given fields: serverURL
func (*LiveStateCache) Invalidate ¶
func (_m *LiveStateCache) Invalidate()
Invalidate provides a mock function with given fields:
func (*LiveStateCache) IsNamespaced ¶
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
Click to show internal directories.
Click to hide internal directories.