/go-mongodbatlas

A Go client library for the MongoDB Atlas API

Primary LanguageGoGNU General Public License v3.0GPL-3.0

go-mongodbatlas Build Status GoDoc codecov

A Go client library for the MongoDB Atlas API.

Getting started

MongoDB Atlas uses the Digest Access Authentication and doesn't support Basic Auth. Follow the examples in examples directory. We create a httpClient using go-http-digest-auth-client and pass it over to mongodbatlas. To run a mongo atlas cluster example, just run:

go run examples/clusters.go <username> <mongodb-atlas-api-key> <group-id>

Development & Contributing

Installing dependencies

go get github.com/golang/lint/golint
go get github.com/akshaykarle/go-http-digest-auth-client
go get -v -t ./mongodbatlas

Testing

Run ./test.sh

TODO

  • Add support for Monitoring & Logging