mongodb

package
v36.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoDBClient

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

NewMongoDBClient returns a MongoDB session to communicate with CosmosDB.

func NewMongoDBClientWithConnectionString

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

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

func NewMongoDBClientWithCredentials

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

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.

Jump to

Keyboard shortcuts

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