Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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
Atlas20231115008 *admin20231115008.APIClient // Needed to avoid breaking changes in federated_settings_identity_provider resource.
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)