Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterExists ¶
func ClusterExists(c *om.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.
package main import ( "fmt" "github.com/mongodb/mongocli/internal/fixtures" "github.com/mongodb/mongocli/internal/search" ) func main() { a := fixtures.AutomationConfig() x := "myReplicaSet" found := search.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.