Documentation
¶
Index ¶
- Constants
- func GetManagedClusterConnections() map[string]*util.ManagedClusterConnection
- func GetModelBindingPair() *types.ModelBindingPair
- func GetModelBindingPairWithNames(modelName string, bindingName string, ns string) *types.ModelBindingPair
- func GetTestClusters() []v1beta1.VerrazzanoManagedCluster
- func InvokeHTTPHandler(request *http.Request, path string, ...) *httptest.ResponseRecorder
- func StringArrayContains(s []string, e string) bool
Constants ¶
View Source
const IstioSystemNamespace = "istio-system"
IstioSystemNamespace duplicate of managed.IstioSystemNamespace to avoid circular import
Variables ¶
This section is empty.
Functions ¶
func GetManagedClusterConnections ¶
func GetManagedClusterConnections() map[string]*util.ManagedClusterConnection
GetManagedClusterConnections returns a test map of managed cluster connections that uses fake client sets
func GetModelBindingPair ¶
func GetModelBindingPair() *types.ModelBindingPair
GetModelBindingPair returns a test model binding pair.
func GetModelBindingPairWithNames ¶
func GetModelBindingPairWithNames(modelName string, bindingName string, ns string) *types.ModelBindingPair
GetModelBindingPairWithNames returns a test model and binding pair with the specified model and binding names in given NS.
func GetTestClusters ¶
func GetTestClusters() []v1beta1.VerrazzanoManagedCluster
GetTestClusters returns a list of Verrazzano Managed Cluster resources.
func InvokeHTTPHandler ¶
func InvokeHTTPHandler(request *http.Request, path string, handler func(http.ResponseWriter, *http.Request)) *httptest.ResponseRecorder
InvokeHTTPHandler sets up a HTTP handler
func StringArrayContains ¶
StringArrayContains checks if a string exists in array of strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.