mdbcloud

package
Version: v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	WithAuth(username, apiKey string) Client
	Groups() ([]Group, error)
	GroupByName(string) (*Group, error)
	DeleteDatabaseUser(groupID, username string) error
}

Client provides access to the MongoDB Cloud Manager APIs

func NewClient

func NewClient(atlasAPIBaseURL string) Client

NewClient constructs and returns a new Client given a username, API key, the public Cloud API base URL, and the atlas API base url

type Group

type Group struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Group represents a mongodb atlas group

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL