modulepackage
0.7.1
Repository: https://github.com/clever/atlas-api-client.git
Documentation: pkg.go.dev
# README
atlas-api-client 
Go and JavaScript clients for MongoDB Atlas
Owned by eng-infra.
Usage
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"github.com/Clever/atlas-api-client/gen-go/client"
)
func main() {
username := "[email protected]"
password := "password"
url := "https://cloud.mongodb.com"
atlasAPI := client.New(atlasUsername, password, url)
ctx := context.Background()
clusters, err := atlasAPI.GetClusters(ctx, "groupID")
// ...
}
- Run
make generate
to generate the code.
Developing
-
Update swagger.yml with your endpoints. See the Swagger spec for additional details on defining your swagger file.
-
Run
make generate
to generate the code.
# Packages
No description provided by the author
# Functions
New creates an Atlas client give the username, password, and URL.