provider

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 91 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongodbGovCloudURL    = "https://cloud.mongodbgov.com"
	MongodbGovCloudQAURL  = "https://cloud-qa.mongodbgov.com"
	MongodbGovCloudDevURL = "https://cloud-dev.mongodbgov.com"
	ProviderConfigError   = "error in configuring the provider."
	MissingAuthAttrError  = "either Atlas Programmatic API Keys or AWS Secrets Manager attributes must be set"
)

Variables

View Source
var AssumeRoleType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"policy_arns":         types.SetType{ElemType: types.StringType},
	"transitive_tag_keys": types.SetType{ElemType: types.StringType},
	"tags":                types.MapType{ElemType: types.StringType},
	"duration":            types.StringType,
	"external_id":         types.StringType,
	"policy":              types.StringType,
	"role_arn":            types.StringType,
	"session_name":        types.StringType,
	"source_identity":     types.StringType,
}}
View Source
var (
	ProviderEnablePreview, _ = strconv.ParseBool(os.Getenv("MONGODB_ATLAS_ENABLE_PREVIEW"))
)

Functions

func MultiEnvDefaultFunc

func MultiEnvDefaultFunc(ks []string, def any) any

func MuxProviderFactory added in v1.15.3

func MuxProviderFactory() func() tfprotov6.ProviderServer

func MuxProviderFactoryForTesting added in v1.15.3

func MuxProviderFactoryForTesting(proxyPort *int) func() tfprotov6.ProviderServer

func NewFrameworkProvider

func NewFrameworkProvider(proxyPort *int) provider.Provider

func NewSdkV2Provider

func NewSdkV2Provider(proxyPort *int) *schema.Provider

NewSdkV2Provider returns the provider to be use by the code.

Types

type MongodbtlasProvider

type MongodbtlasProvider struct {
	// contains filtered or unexported fields
}

func (*MongodbtlasProvider) Configure

func (*MongodbtlasProvider) DataSources

func (p *MongodbtlasProvider) DataSources(context.Context) []func() datasource.DataSource

func (*MongodbtlasProvider) Metadata

func (*MongodbtlasProvider) Resources

func (p *MongodbtlasProvider) Resources(context.Context) []func() resource.Resource

func (*MongodbtlasProvider) Schema

type SecretData

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

Jump to

Keyboard shortcuts

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