Documentation
¶
Index ¶
Constants ¶
const PreviewProviderV2AdvancedClusterEnvVar = "MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER"
Variables ¶
This section is empty.
Functions ¶
func PreviewProviderV2AdvancedCluster ¶ added in v1.27.0
func PreviewProviderV2AdvancedCluster() bool
Types ¶
type AssumeRole ¶
type Config ¶
type Config struct {
AssumeRole *AssumeRole
ProxyPort *int
PublicKey string
PrivateKey string
BaseURL string
RealmBaseURL string
TerraformVersion string
}
Config contains the configurations needed to use SDKs
type DSCommon ¶
type DSCommon struct {
Client *MongoDBClient
DataSourceName string
}
DSCommon is used as an embedded struct for all framework data sources. Implements the following plugin-framework defined functions: - Metadata - Configure Client is left empty and populated by the framework when envoking Configure method. DataSourceName must be defined when creating an instance of a data source.
func (*DSCommon) Configure ¶
func (d *DSCommon) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DSCommon) Metadata ¶
func (d *DSCommon) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
type MongoDBClient ¶
type MongoDBClient struct {
Atlas *matlasClient.Client
AtlasV2 *admin.APIClient
AtlasPreview *adminpreview.APIClient
AtlasV220240805 *admin20240805.APIClient // used in advanced_cluster to avoid adopting 2024-10-23 release with ISS autoscaling
AtlasV220240530 *admin20240530.APIClient // used in advanced_cluster and cloud_backup_schedule for avoiding breaking changes (supporting deprecated replication_specs.id)
Config *Config
}
MongoDBClient contains the mongodbatlas clients and configurations
func (*MongoDBClient) GetRealmClient ¶
type PlatformVersion ¶ added in v1.16.0
type RSCommon ¶
type RSCommon struct {
Client *MongoDBClient
ResourceName string
}
RSCommon is used as an embedded struct for all framework resources. Implements the following plugin-framework defined functions: - Metadata - Configure Client is left empty and populated by the framework when envoking Configure method. ResourceName must be defined when creating an instance of a resource.
func (*RSCommon) Configure ¶
func (r *RSCommon) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RSCommon) Metadata ¶
func (r *RSCommon) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)