Documentation
¶
Overview ¶
Package atmcfg provides helpers for updating Ops Manager automation config.
Package atmcfg provides a a set of helper methods to help you update the automation config.
Usage
import "go.mongodb.org/ops-manager/atmcfg"
Index ¶
- func AddIndexConfig(out *opsmngr.AutomationConfig, newIndex *opsmngr.IndexConfig) error
- func AddUser(out *opsmngr.AutomationConfig, u *opsmngr.MongoDBUser)
- func EnableMechanism(out *opsmngr.AutomationConfig, m []string) error
- func RemoveUser(out *opsmngr.AutomationConfig, username, database string) error
- func Shutdown(out *opsmngr.AutomationConfig, name string)
- func Startup(out *opsmngr.AutomationConfig, name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIndexConfig ¶
func AddIndexConfig(out *opsmngr.AutomationConfig, newIndex *opsmngr.IndexConfig) error
AddIndexConfig adds an opsmngr.IndexConfig to the opsmngr.AutomationConfig
func AddUser ¶
func AddUser(out *opsmngr.AutomationConfig, u *opsmngr.MongoDBUser)
AddUser adds a opsmngr.MongoDBUser to the opsmngr.AutomationConfi
func EnableMechanism ¶ added in v0.6.1
func EnableMechanism(out *opsmngr.AutomationConfig, m []string) error
EnableMechanism allows you to enable a given set of authentication mechanisms to an opsmngr.AutomationConfig. This method currently only supports MONGODB-CR, and SCRAM-SHA-256
func RemoveUser ¶
func RemoveUser(out *opsmngr.AutomationConfig, username, database string) error
RemoveUser removes a MongoDBUser from the authentication config
func Shutdown ¶
func Shutdown(out *opsmngr.AutomationConfig, name string)
Shutdown disables all processes of the given cluster name
func Startup ¶
func Startup(out *opsmngr.AutomationConfig, name string)
Startup enables all processes of the given cluster name
Types ¶
This section is empty.