mongodbatlas

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRole added in v0.9.0

func FindRole(ctx context.Context, conn *matlas.Client, projectID, roleID string) (targetRole *matlas.AWSIAMRole, err error)

func HashCodeString added in v1.0.0

func HashCodeString(s string) int

HashCodeString hashes a string to a unique hashcode.

crc32 returns a uint32, but for our use we need and non negative integer. Here we cast to an integer and invert it if the result is negative.

func Provider

func Provider() *schema.Provider

Provider returns the provider to be use by the code.

Types

type Config

type Config struct {
	PublicKey    string
	PrivateKey   string
	BaseURL      string
	RealmBaseURL string
}

Config struct ...

func (*Config) NewClient

func (c *Config) NewClient(ctx context.Context) (interface{}, diag.Diagnostics)

NewClient func...

type MongoDBClient added in v1.0.0

type MongoDBClient struct {
	Atlas  *matlasClient.Client
	Config *Config
}

MongoDBClient client

func (*MongoDBClient) GetRealmClient added in v1.0.1

func (c *MongoDBClient) GetRealmClient(ctx context.Context) (*realm.Client, error)

Source Files

Jump to

Keyboard shortcuts

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