mongodbatlas

package
v1.8.1-pre1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MPL-2.0 Imports: 42 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 AssumeRole added in v1.7.0

type AssumeRole struct {
	RoleARN           string
	Duration          time.Duration
	ExternalID        string
	Policy            string
	PolicyARNs        []string
	SessionName       string
	SourceIdentity    string
	Tags              map[string]string
	TransitiveTagKeys []string
}

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
	AssumeRole   *AssumeRole
}

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)

type SecretData added in v1.7.0

type SecretData struct {
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

Source Files

Jump to

Keyboard shortcuts

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