mongodbatlas

package
v1.10.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MPL-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeprecationMessage                    = "this resource is deprecated and will be removed in %s, please transition to %s"
	DeprecationMessageParameterToResource = "this parameter is deprecated and will be removed in %s, please transition to %s"
)

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 FlattenProjectAssignment added in v1.10.0

func FlattenProjectAssignment(apiKeyAssignmentSet []APIProjectAssignmentKeyInput) []map[string]interface{}

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 APIProjectAssignmentKeyInput added in v1.10.0

type APIProjectAssignmentKeyInput struct {
	ProjectID string   `json:"desc,omitempty"`
	RoleNames []string `json:"roles,omitempty"`
}

func ExpandProjectAssignmentSet added in v1.10.0

func ExpandProjectAssignmentSet(projectAssignments *schema.Set) []*APIProjectAssignmentKeyInput

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