whyman / go-mongodbatlas

A Go client library for the MongoDB Atlas API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Go client library for the MongoDB Atlas API

License:GNU General Public License v3.0


Languages

Language:Go 99.1%Language:Shell 0.9%