Categorygithub.com/activecm/mgosec
modulepackage
0.1.1
Repository: https://github.com/activecm/mgosec.git
Documentation: pkg.go.dev

# Functions

Dial dials a MongoDB server with the provided MongoDB connection string,as supplied to the mongo utility, an auth mechanism (see AuthMechanism),and a TLS configuration.
DialInsecure dials a MongoDB server with the provided MongoDB connection string,as supplied to the mongo utility, an auth mechanism (see AuthMechanism).Note: this method does not encrypt any information placed on the wire,including authentication details.
ParseAuthMechanism parses a string representation of a MongoDBauthentication mechanism and returns the AuthMechanism which matches.

# Constants

GssAPI = GSSAPI.
MongoCR = MONGODB-CR.
None is used to show that authentication is disabled.
PlainAuth = PLAIN.
ScramSha1 = SCRAM-SHA-1.
X500 = MONGODB-X500.

# Type aliases

AuthMechanism represents a MongoDB authentication mechanism.