provider

package
v1.15.1-pre Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 92 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongodbGovCloudURL   = "https://cloud.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 (
	ProviderEnableBeta, _ = strconv.ParseBool(os.Getenv("MONGODB_ATLAS_ENABLE_BETA"))
)

Functions

func MultiEnvDefaultFunc

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

func MuxedProviderFactory

func MuxedProviderFactory() func() tfprotov6.ProviderServer

func NewFrameworkProvider

func NewFrameworkProvider() provider.Provider

func NewSdkV2Provider

func NewSdkV2Provider() *schema.Provider

NewSdkV2Provider returns the provider to be use by the code.

Types

type MongodbtlasProvider

type MongodbtlasProvider struct{}

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