Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterExists ¶
func ClusterExists(c *opsmngr.AutomationConfig, name string) bool
ClusterExists return true if a cluster exists for the given name
Example ¶
This example demonstrates searching a cluster in an automation config.
a := fixture.AutomationConfig()
x := "myReplicaSet"
found := ClusterExists(a, x)
if found {
fmt.Printf("found %v\n", x)
} else {
fmt.Printf("%s not found\n", x)
}
Output: found myReplicaSet
func StringInSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.