Documentation ¶
Overview ¶
Package mongodb provides Mongo DB dataplane clients for Microsoft Azure CosmosDb Services.
Index ¶
- func NewMongoDBClient(dialInfo *mgo.DialInfo) (*mgo.Session, error)
- func NewMongoDBClientWithConnectionString(connectionString string) (*mgo.Session, error)
- func NewMongoDBClientWithCredentials(username, password, host string) (*mgo.Session, error)
- func NewMongoDBClientWithMSI(subscriptionID, resourceGroup, account string, environment azure.Environment) (*mgo.Session, error)
- func NewMongoDBClientWithSPToken(spToken *adal.ServicePrincipalToken, ...) (*mgo.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoDBClient ¶
NewMongoDBClient returns a MongoDB session to communicate with CosmosDB.
func NewMongoDBClientWithConnectionString ¶
NewMongoDBClientWithConnectionString returns a MongoDb session to communicate with CosmosDB using a connection string.
func NewMongoDBClientWithCredentials ¶
NewMongoDBClientWithCredentials returns a MongoDb session to communicate with CosmosDB using a username and a password.
func NewMongoDBClientWithMSI ¶
func NewMongoDBClientWithMSI(subscriptionID, resourceGroup, account string, environment azure.Environment) (*mgo.Session, error)
NewMongoDBClientWithMSI returns a MongoDB session to communicate with CosmosDB using MSI.
func NewMongoDBClientWithSPToken ¶
func NewMongoDBClientWithSPToken(spToken *adal.ServicePrincipalToken, subscriptionID, resourceGroup, account string, environment azure.Environment) (*mgo.Session, error)
NewMongoDBClientWithSPToken returns a session to communicate with CosmosDB using an auth token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.