Documentation
¶
Index ¶
- type LiveStateCache
- func (_m *LiveStateCache) GetClusterCache(server *v1alpha1.Cluster) (cache.ClusterCache, error)
- func (_m *LiveStateCache) GetClustersInfo() []cache.ClusterInfo
- func (_m *LiveStateCache) GetManagedLiveObjs(destCluster *v1alpha1.Cluster, a *v1alpha1.Application, ...) (map[kube.ResourceKey]*unstructured.Unstructured, error)
- func (_m *LiveStateCache) GetNamespaceTopLevelResources(server *v1alpha1.Cluster, namespace string) (map[kube.ResourceKey]v1alpha1.ResourceNode, error)
- func (_m *LiveStateCache) GetVersionsInfo(server *v1alpha1.Cluster) (string, []kube.APIResourceInfo, error)
- func (_m *LiveStateCache) Init() error
- func (_m *LiveStateCache) IsNamespaced(server *v1alpha1.Cluster, gk schema.GroupKind) (bool, error)
- func (_m *LiveStateCache) IterateHierarchy(server *v1alpha1.Cluster, key kube.ResourceKey, ...) error
- func (_m *LiveStateCache) IterateHierarchyV2(server *v1alpha1.Cluster, keys []kube.ResourceKey, ...) error
- func (_m *LiveStateCache) IterateResources(server *v1alpha1.Cluster, ...) error
- func (_m *LiveStateCache) Run(ctx context.Context) error
- func (_m *LiveStateCache) UpdateShard(shard int) bool
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 NewLiveStateCache ¶
func NewLiveStateCache(t interface { mock.TestingT Cleanup(func()) }) *LiveStateCache
NewLiveStateCache creates a new instance of LiveStateCache. 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 (*LiveStateCache) GetClusterCache ¶
func (_m *LiveStateCache) GetClusterCache(server *v1alpha1.Cluster) (cache.ClusterCache, error)
GetClusterCache provides a mock function with given fields: server
func (*LiveStateCache) GetClustersInfo ¶
func (_m *LiveStateCache) GetClustersInfo() []cache.ClusterInfo
GetClustersInfo provides a mock function with given fields:
func (*LiveStateCache) GetManagedLiveObjs ¶
func (_m *LiveStateCache) GetManagedLiveObjs(destCluster *v1alpha1.Cluster, a *v1alpha1.Application, targetObjs []*unstructured.Unstructured) (map[kube.ResourceKey]*unstructured.Unstructured, error)
GetManagedLiveObjs provides a mock function with given fields: destCluster, a, targetObjs
func (*LiveStateCache) GetNamespaceTopLevelResources ¶
func (_m *LiveStateCache) GetNamespaceTopLevelResources(server *v1alpha1.Cluster, namespace string) (map[kube.ResourceKey]v1alpha1.ResourceNode, error)
GetNamespaceTopLevelResources provides a mock function with given fields: server, namespace
func (*LiveStateCache) GetVersionsInfo ¶
func (_m *LiveStateCache) GetVersionsInfo(server *v1alpha1.Cluster) (string, []kube.APIResourceInfo, error)
GetVersionsInfo provides a mock function with given fields: server
func (*LiveStateCache) Init ¶
func (_m *LiveStateCache) Init() error
Init provides a mock function with given fields:
func (*LiveStateCache) IsNamespaced ¶
IsNamespaced provides a mock function with given fields: server, gk
func (*LiveStateCache) IterateHierarchy ¶
func (_m *LiveStateCache) IterateHierarchy(server *v1alpha1.Cluster, key kube.ResourceKey, action func(v1alpha1.ResourceNode, string) bool) error
IterateHierarchy provides a mock function with given fields: server, key, action
func (*LiveStateCache) IterateHierarchyV2 ¶
func (_m *LiveStateCache) IterateHierarchyV2(server *v1alpha1.Cluster, keys []kube.ResourceKey, action func(v1alpha1.ResourceNode, string) bool) error
IterateHierarchyV2 provides a mock function with given fields: server, keys, action
func (*LiveStateCache) IterateResources ¶
func (_m *LiveStateCache) IterateResources(server *v1alpha1.Cluster, callback func(*cache.Resource, *controllercache.ResourceInfo)) error
IterateResources provides a mock function with given fields: server, callback
func (*LiveStateCache) Run ¶
func (_m *LiveStateCache) Run(ctx context.Context) error
Run provides a mock function with given fields: ctx
func (*LiveStateCache) UpdateShard ¶
func (_m *LiveStateCache) UpdateShard(shard int) bool
UpdateShard provides a mock function with given fields: shard