akshaykarle / go-mongodbatlas

A Go client library for the MongoDB Atlas API
GNU General Public License v3.0
16 stars 20 forks source link
atlas mongodb mongodb-atlas

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