mongodbatlas

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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 HashCodeStrings added in v1.0.0

func HashCodeStrings(hashStrings []string) string

HashCodeStrings hashes a list of strings to a unique hashcode.

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
}

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
	Realm *realm.Client
}

MongoDBClient client

Source Files

Jump to

Keyboard shortcuts

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