Documentation ¶
Index ¶
- Constants
- func DataSourceDatabaseDatabase() *schema.Resource
- func DataSourceDatabaseInstance() *schema.Resource
- func DataSourceDatabaseUser() *schema.Resource
- func DatastoreCapabilitiesParamSchema() schema.NestedAttributeObject
- func NewBackupDataSource() datasource.DataSource
- func NewBackupResource() resource.Resource
- func NewConfigGroupDataSource() datasource.DataSource
- func NewDatastoreCapabilitiesDataSource() datasource.DataSource
- func NewDatastoreDataSource() datasource.DataSource
- func NewDatastoreParametersDataSource() datasource.DataSource
- func NewDatastoresDataSource() datasource.DataSource
- func ResourceDatabaseCluster() *schema.Resource
- func ResourceDatabaseClusterWithShards() *schema.Resource
- func ResourceDatabaseConfigGroup() *schema.Resource
- func ResourceDatabaseDatabase() *schema.Resource
- func ResourceDatabaseInstance() *schema.Resource
- func ResourceDatabaseUser() *schema.Resource
- type BackupDataSource
- func (d *BackupDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BackupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BackupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BackupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type BackupDataSourceModel
- type BackupDataStoreModel
- type BackupResource
- func (r *BackupResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BackupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BackupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BackupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BackupResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *BackupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BackupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BackupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BackupResourceModel
- type ConfigGroupDataSource
- func (d *ConfigGroupDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ConfigGroupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ConfigGroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ConfigGroupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ConfigGroupDataSourceModel
- type ConfigGroupDatastoreModel
- type DatastoreCapabilitiesDataSource
- func (d *DatastoreCapabilitiesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatastoreCapabilitiesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatastoreCapabilitiesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatastoreCapabilitiesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatastoreCapabilitiesDataSourceModel
- type DatastoreCapabilityItemModel
- type DatastoreCapabilityParamsModel
- type DatastoreDataSource
- func (d *DatastoreDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatastoreDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatastoreDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatastoreDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatastoreDataSourceModel
- type DatastoreModel
- type DatastoreParameterModel
- type DatastoreParametersDataSource
- func (d *DatastoreParametersDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatastoreParametersDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatastoreParametersDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatastoreParametersDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatastoreParametersDataSourceModel
- type DatastoreVersionModel
- type DatastoresDataSource
- func (d *DatastoresDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DatastoresDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DatastoresDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DatastoresDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatastoresDataSourceModel
Constants ¶
View Source
const ( Redis = "redis" MongoDB = "mongodb" PostgresPro = "postgrespro" Galera = "galera_mysql" Postgres = "postgresql" Clickhouse = "clickhouse" MySQL = "mysql" Tarantool = "tarantool" )
Datastore names
View Source
const (
DBClusterInstanceRoleLeader string = "leader"
)
Variables ¶
This section is empty.
Functions ¶
func DataSourceDatabaseUser ¶
func DatastoreCapabilitiesParamSchema ¶ added in v0.3.0
func DatastoreCapabilitiesParamSchema() schema.NestedAttributeObject
func NewBackupDataSource ¶ added in v0.4.0
func NewBackupDataSource() datasource.DataSource
func NewBackupResource ¶ added in v0.4.0
func NewConfigGroupDataSource ¶ added in v0.4.0
func NewConfigGroupDataSource() datasource.DataSource
func NewDatastoreCapabilitiesDataSource ¶ added in v0.3.0
func NewDatastoreCapabilitiesDataSource() datasource.DataSource
func NewDatastoreDataSource ¶ added in v0.3.0
func NewDatastoreDataSource() datasource.DataSource
func NewDatastoreParametersDataSource ¶ added in v0.3.0
func NewDatastoreParametersDataSource() datasource.DataSource
func NewDatastoresDataSource ¶ added in v0.3.0
func NewDatastoresDataSource() datasource.DataSource
func ResourceDatabaseCluster ¶
func ResourceDatabaseUser ¶
Types ¶
type BackupDataSource ¶ added in v0.4.0
type BackupDataSource struct {
// contains filtered or unexported fields
}
func (*BackupDataSource) Configure ¶ added in v0.4.0
func (d *BackupDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*BackupDataSource) Metadata ¶ added in v0.4.0
func (d *BackupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*BackupDataSource) Read ¶ added in v0.4.0
func (d *BackupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*BackupDataSource) Schema ¶ added in v0.4.0
func (d *BackupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type BackupDataSourceModel ¶ added in v0.4.0
type BackupDataSourceModel struct { ID types.String `tfsdk:"id"` Region types.String `tfsdk:"region"` BackupID types.String `tfsdk:"backup_id"` Created types.String `tfsdk:"created"` Datastore types.List `tfsdk:"datastore"` DbmsID types.String `tfsdk:"dbms_id"` DbmsType types.String `tfsdk:"dbms_type"` Description types.String `tfsdk:"description"` LocationRef types.String `tfsdk:"location_ref"` Meta types.String `tfsdk:"meta"` Name types.String `tfsdk:"name"` Size types.Float64 `tfsdk:"size"` Updated types.String `tfsdk:"updated"` WalSize types.Float64 `tfsdk:"wal_size"` }
type BackupDataStoreModel ¶ added in v0.4.0
type BackupResource ¶ added in v0.4.0
type BackupResource struct {
// contains filtered or unexported fields
}
func (*BackupResource) Configure ¶ added in v0.4.0
func (r *BackupResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BackupResource) Create ¶ added in v0.4.0
func (r *BackupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BackupResource) Delete ¶ added in v0.4.0
func (r *BackupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BackupResource) ImportState ¶ added in v0.4.0
func (r *BackupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BackupResource) Metadata ¶ added in v0.4.0
func (r *BackupResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BackupResource) Read ¶ added in v0.4.0
func (r *BackupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BackupResource) Schema ¶ added in v0.4.0
func (r *BackupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BackupResource) Update ¶ added in v0.4.0
func (r *BackupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BackupResourceModel ¶ added in v0.4.0
type BackupResourceModel struct { ID types.String `tfsdk:"id"` Region types.String `tfsdk:"region"` ContainerPrefix types.String `tfsdk:"container_prefix"` Created types.String `tfsdk:"created"` Datastore types.List `tfsdk:"datastore"` DbmsID types.String `tfsdk:"dbms_id"` DbmsType types.String `tfsdk:"dbms_type"` Description types.String `tfsdk:"description"` LocationRef types.String `tfsdk:"location_ref"` Meta types.String `tfsdk:"meta"` Name types.String `tfsdk:"name"` Size types.Float64 `tfsdk:"size"` Updated types.String `tfsdk:"updated"` WalSize types.Float64 `tfsdk:"wal_size"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
type ConfigGroupDataSource ¶ added in v0.4.0
type ConfigGroupDataSource struct {
// contains filtered or unexported fields
}
func (*ConfigGroupDataSource) Configure ¶ added in v0.4.0
func (d *ConfigGroupDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ConfigGroupDataSource) Metadata ¶ added in v0.4.0
func (d *ConfigGroupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ConfigGroupDataSource) Read ¶ added in v0.4.0
func (d *ConfigGroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ConfigGroupDataSource) Schema ¶ added in v0.4.0
func (d *ConfigGroupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ConfigGroupDataSourceModel ¶ added in v0.4.0
type ConfigGroupDataSourceModel struct { ID types.String `tfsdk:"id"` Region types.String `tfsdk:"region"` ConfigGroupID types.String `tfsdk:"config_group_id"` Created types.String `tfsdk:"created"` Datastore []ConfigGroupDatastoreModel `tfsdk:"datastore"` Description types.String `tfsdk:"description"` Name types.String `tfsdk:"name"` Updated types.String `tfsdk:"updated"` Values types.Map `tfsdk:"values"` }
type ConfigGroupDatastoreModel ¶ added in v0.4.0
type DatastoreCapabilitiesDataSource ¶ added in v0.3.0
type DatastoreCapabilitiesDataSource struct {
// contains filtered or unexported fields
}
func (*DatastoreCapabilitiesDataSource) Configure ¶ added in v0.3.0
func (d *DatastoreCapabilitiesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatastoreCapabilitiesDataSource) Metadata ¶ added in v0.3.0
func (d *DatastoreCapabilitiesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatastoreCapabilitiesDataSource) Read ¶ added in v0.3.0
func (d *DatastoreCapabilitiesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatastoreCapabilitiesDataSource) Schema ¶ added in v0.3.0
func (d *DatastoreCapabilitiesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DatastoreCapabilitiesDataSourceModel ¶ added in v0.3.0
type DatastoreCapabilitiesDataSourceModel struct { ID types.String `tfsdk:"id"` DatastoreName types.String `tfsdk:"datastore_name"` DatastoreVersionID types.String `tfsdk:"datastore_version_id"` Capabilities []DatastoreCapabilityItemModel `tfsdk:"capabilities"` Region types.String `tfsdk:"region"` }
type DatastoreCapabilityItemModel ¶ added in v0.3.0
type DatastoreCapabilityItemModel struct { Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Params []DatastoreCapabilityParamsModel `tfsdk:"params"` ShouldBeOnMaster types.Bool `tfsdk:"should_be_on_master"` AllowMajorUpgrade types.Bool `tfsdk:"allow_major_upgrade"` AllowUpgradeFromBackup types.Bool `tfsdk:"allow_upgrade_from_backup"` }
type DatastoreCapabilityParamsModel ¶ added in v0.3.0
type DatastoreCapabilityParamsModel struct { Name types.String `tfsdk:"name"` Required types.Bool `tfsdk:"required"` Type types.String `tfsdk:"type"` ElementType types.String `tfsdk:"element_type"` EnumValues types.List `tfsdk:"enum_values"` DefaultValue types.String `tfsdk:"default_value"` Min types.Float64 `tfsdk:"min"` Max types.Float64 `tfsdk:"max"` Regex types.String `tfsdk:"regex"` Masked types.Bool `tfsdk:"masked"` }
type DatastoreDataSource ¶ added in v0.3.0
type DatastoreDataSource struct {
// contains filtered or unexported fields
}
func (*DatastoreDataSource) Configure ¶ added in v0.3.0
func (d *DatastoreDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatastoreDataSource) Metadata ¶ added in v0.3.0
func (d *DatastoreDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatastoreDataSource) Read ¶ added in v0.3.0
func (d *DatastoreDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatastoreDataSource) Schema ¶ added in v0.3.0
func (d *DatastoreDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DatastoreDataSourceModel ¶ added in v0.3.0
type DatastoreDataSourceModel struct { Region types.String `tfsdk:"region"` ClusterVolumeTypes types.List `tfsdk:"cluster_volume_types"` ID types.String `tfsdk:"id"` MinimumCPU types.Int64 `tfsdk:"minimum_cpu"` MinimumRAM types.Int64 `tfsdk:"minimum_ram"` Name types.String `tfsdk:"name"` Versions []DatastoreVersionModel `tfsdk:"versions"` VolumeTypes types.List `tfsdk:"volume_types"` }
type DatastoreModel ¶ added in v0.3.0
type DatastoreParameterModel ¶ added in v0.3.0
type DatastoreParametersDataSource ¶ added in v0.3.0
type DatastoreParametersDataSource struct {
// contains filtered or unexported fields
}
func (*DatastoreParametersDataSource) Configure ¶ added in v0.3.0
func (d *DatastoreParametersDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatastoreParametersDataSource) Metadata ¶ added in v0.3.0
func (d *DatastoreParametersDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatastoreParametersDataSource) Read ¶ added in v0.3.0
func (d *DatastoreParametersDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatastoreParametersDataSource) Schema ¶ added in v0.3.0
func (d *DatastoreParametersDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DatastoreParametersDataSourceModel ¶ added in v0.3.0
type DatastoreVersionModel ¶ added in v0.3.0
type DatastoresDataSource ¶ added in v0.3.0
type DatastoresDataSource struct {
// contains filtered or unexported fields
}
func (*DatastoresDataSource) Configure ¶ added in v0.3.0
func (d *DatastoresDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatastoresDataSource) Metadata ¶ added in v0.3.0
func (d *DatastoresDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatastoresDataSource) Read ¶ added in v0.3.0
func (d *DatastoresDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatastoresDataSource) Schema ¶ added in v0.3.0
func (d *DatastoresDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DatastoresDataSourceModel ¶ added in v0.3.0
type DatastoresDataSourceModel struct { ID types.String `tfsdk:"id"` Region types.String `tfsdk:"region"` Datastores []DatastoreModel `tfsdk:"datastores"` }
Source Files ¶
- backup.go
- cluster.go
- config_group.go
- data_source_backup.go
- data_source_config_group.go
- data_source_database.go
- data_source_datastore.go
- data_source_datastore_capabilities.go
- data_source_datastore_parameters.go
- data_source_datastores.go
- data_source_instance.go
- data_source_user.go
- database.go
- instance.go
- resource_backup.go
- resource_cluster.go
- resource_cluster_with_shards.go
- resource_config_group.go
- resource_database.go
- resource_instance.go
- resource_user.go
- shared.go
- user.go
Click to show internal directories.
Click to hide internal directories.