watchmanager

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 18 Imported by: 0

Documentation

Overview

Package watchmanager is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCluster

func AddCluster(cachedClient kubernetes.Client, clusterID string) error

AddCluster add a cluster if not already exist to watch for sfserviceinstance and sfservicebinding

func GetWatchChannel

func GetWatchChannel(resource string) (<-chan event.GenericEvent, error)

GetWatchChannel returns the channel for a resource to watch on Supported resource names are : sfserviceinstances and sfservicebindings

func Initialize

func Initialize(kubeConfig *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper) error

Initialize initializes the watch manager

func RemoveCluster

func RemoveCluster(clusterID string) error

RemoveCluster stops watching on a cluster if already watching

Types

type MockwatchManagerInterface

type MockwatchManagerInterface struct {
	// contains filtered or unexported fields
}

MockwatchManagerInterface is a mock of watchManagerInterface interface.

func NewMockwatchManagerInterface

func NewMockwatchManagerInterface(ctrl *gomock.Controller) *MockwatchManagerInterface

NewMockwatchManagerInterface creates a new mock instance.

func (*MockwatchManagerInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockwatchManagerInterfaceMockRecorder

type MockwatchManagerInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockwatchManagerInterfaceMockRecorder is the mock recorder for MockwatchManagerInterface.

Jump to

Keyboard shortcuts

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