Version: v0.13.1 Latest Latest

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0



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.


import ""



This section is empty.


This section is empty.


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 ConfigureScramCredentials added in v0.8.0

func ConfigureScramCredentials(user *opsmngr.MongoDBUser, password string) error

ConfigureScramCredentials creates both SCRAM-SHA-1 and SCRAM-SHA-256 credentials. Use this method to guarantee that password can be updated later.

func DisableBackup added in v0.13.0

func DisableBackup(out *opsmngr.AutomationConfig, hostname string) error

DisableBackup disables backup for the given hostname

func DisableMonitoring added in v0.13.0

func DisableMonitoring(out *opsmngr.AutomationConfig, hostname string) error

DisableMonitoring disables monitoring for the given hostname

func EnableBackup added in v0.10.0

func EnableBackup(out *opsmngr.AutomationConfig, hostname string) error

EnableBackup enables backup for the given hostname

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 EnableMonitoring added in v0.10.0

func EnableMonitoring(out *opsmngr.AutomationConfig, hostname string) error

EnableMonitoring enables monitoring for the given hostname

func RemoveByClusterName added in v0.7.1

func RemoveByClusterName(out *opsmngr.AutomationConfig, name string)

RemoveByClusterName removes a cluster and its associated processes from the config. This won't shutdown any running process.

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


This section is empty.

Jump to

Keyboard shortcuts

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