azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/cosmos-db/mongodb Index | Files

package mongodb

import "github.com/Azure/azure-sdk-for-go/services/cosmos-db/mongodb"

Package mongodb provides Mongo DB dataplane clients for Microsoft Azure CosmosDb Services.

Index

Package Files

client.go

func NewMongoDBClient Uses

func NewMongoDBClient(dialInfo *mgo.DialInfo) (*mgo.Session, error)

NewMongoDBClient returns a MongoDB session to communicate with CosmosDB.

func NewMongoDBClientWithConnectionString Uses

func NewMongoDBClientWithConnectionString(connectionString string) (*mgo.Session, error)

NewMongoDBClientWithConnectionString returns a MongoDb session to communicate with CosmosDB using a connection string.

func NewMongoDBClientWithCredentials Uses

func NewMongoDBClientWithCredentials(username, password, host string) (*mgo.Session, error)

NewMongoDBClientWithCredentials returns a MongoDb session to communicate with CosmosDB using a username and a password.

func NewMongoDBClientWithMSI Uses

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 Uses

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.

Package mongodb imports 10 packages (graph). Updated 2019-10-11. Refresh now. Tools for package owners.