package
1.10.11
Repository: https://github.com/bakharal/mongo-go-driver.git
Documentation: pkg.go.dev

# Functions

ConductSaslConversation runs a full SASL conversation to authenticate the given connection.
CreateAuthenticator creates an authenticator.
Handshaker creates a connection handshaker for the given authenticator.
RegisterAuthenticatorFactory registers the authenticator factory.

# Constants

GSSAPI is the mechanism name for GSSAPI.
MongoDBAWS is the mechanism name for MongoDBAWS.
MONGODBCR is the mechanism name for MONGODB-CR.
MongoDBX509 is the mechanism name for MongoDBX509.
PLAIN is the mechanism name for PLAIN.
SCRAMSHA1 holds the mechanism name "SCRAM-SHA-1".
SCRAMSHA256 holds the mechanism name "SCRAM-SHA-256".

# Structs

Config holds the information necessary to perform an authentication attempt.
Cred is a user's credential.
DefaultAuthenticator uses SCRAM-SHA-1 or MONGODB-CR depending on the server version.
Error is an error that occurred during authentication.
HandshakeOptions packages options that can be passed to the Handshaker() function.
MongoDBAWSAuthenticator uses AWS-IAM credentials over SASL to authenticate a connection.
MongoDBCRAuthenticator uses the MONGODB-CR algorithm to authenticate a connection.
MongoDBX509Authenticator uses X.509 certificates over TLS to authenticate a connection.
PlainAuthenticator uses the PLAIN algorithm over SASL to authenticate a connection.
ScramAuthenticator uses the SCRAM algorithm over SASL to authenticate a connection.

# Interfaces

Authenticator handles authenticating a connection.
ExtraOptionsSaslClient is a SaslClient that appends options to the saslStart command.
SaslClient is the client piece of a sasl conversation.
SaslClientCloser is a SaslClient that has resources to clean up.
SpeculativeAuthenticator represents an authenticator that supports speculative authentication.
SpeculativeConversation represents an authentication conversation that can be merged with the initial connection handshake.

# Type aliases

AuthenticatorFactory constructs an authenticator.