mongodbatlas

package
v1.6.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderEnableBeta, _ = strconv.ParseBool(os.Getenv("MONGODB_ATLAS_ENABLE_BETA"))
)

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 AtlastProjectDependents added in v1.3.1

type AtlastProjectDependents struct {
	AdvancedClusters *matlas.AdvancedClustersResponse
}

Resources that need to be cleaned up before a project can be deleted

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