internal

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBAtlasClient

type MongoDBAtlasClient struct {
	// contains filtered or unexported fields
}

MongoDBAtlasClient wraps the official MongoDB Atlas client to manage pagination and mapping to OpenTelmetry metric and log structures.

func NewMongoDBAtlasClient

func NewMongoDBAtlasClient(
	publicKey string,
	privateKey string,
	log *zap.Logger,
) (*MongoDBAtlasClient, error)

func (*MongoDBAtlasClient) Organizations

func (s *MongoDBAtlasClient) Organizations(ctx context.Context) []*mongodbatlas.Organization

Organizations returns a list of all organizations available with the supplied credentials

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL