db

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Redis                   = "redis"
	MongoDB                 = "mongodb"
	PostgresPro             = "postgrespro"
	PostgresProEnterprise   = "postgrespro_enterprise"
	PostgresProEnterprise1C = "postgrespro_enterprise_1c"
	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 DataSourceDatabaseDatabase

func DataSourceDatabaseDatabase() *schema.Resource

func DataSourceDatabaseInstance

func DataSourceDatabaseInstance() *schema.Resource

func DataSourceDatabaseUser

func DataSourceDatabaseUser() *schema.Resource

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 NewBackupResource() resource.Resource

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 ResourceDatabaseCluster() *schema.Resource

func ResourceDatabaseClusterWithShards

func ResourceDatabaseClusterWithShards() *schema.Resource

func ResourceDatabaseConfigGroup

func ResourceDatabaseConfigGroup() *schema.Resource

func ResourceDatabaseDatabase

func ResourceDatabaseDatabase() *schema.Resource

func ResourceDatabaseInstance

func ResourceDatabaseInstance() *schema.Resource

func ResourceDatabaseUser

func ResourceDatabaseUser() *schema.Resource

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 (*BackupDataSource) Metadata added in v0.4.0

func (*BackupDataSource) Read added in v0.4.0

func (*BackupDataSource) Schema added in v0.4.0

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 BackupDataStoreModel struct {
	Type    types.String `tfsdk:"type"`
	Version types.String `tfsdk:"version"`
}

func (BackupDataStoreModel) AttrTypes added in v0.4.0

func (m BackupDataStoreModel) AttrTypes() map[string]attr.Type

type BackupResource added in v0.4.0

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

func (*BackupResource) Configure added in v0.4.0

func (*BackupResource) Create added in v0.4.0

func (*BackupResource) Delete added in v0.4.0

func (*BackupResource) ImportState added in v0.4.0

func (*BackupResource) Metadata added in v0.4.0

func (*BackupResource) Read added in v0.4.0

func (*BackupResource) Schema added in v0.4.0

func (*BackupResource) Update added in v0.4.0

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 (*ConfigGroupDataSource) Metadata added in v0.4.0

func (*ConfigGroupDataSource) Read added in v0.4.0

func (*ConfigGroupDataSource) Schema added in v0.4.0

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 ConfigGroupDatastoreModel struct {
	Type    types.String `tfsdk:"type"`
	Version types.String `tfsdk:"version"`
}

type DatastoreCapabilitiesDataSource added in v0.3.0

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

func (*DatastoreCapabilitiesDataSource) Configure added in v0.3.0

func (*DatastoreCapabilitiesDataSource) Metadata added in v0.3.0

func (*DatastoreCapabilitiesDataSource) Read added in v0.3.0

func (*DatastoreCapabilitiesDataSource) Schema added in v0.3.0

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 (*DatastoreDataSource) Metadata added in v0.3.0

func (*DatastoreDataSource) Read added in v0.3.0

func (*DatastoreDataSource) Schema added in v0.3.0

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 DatastoreModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type DatastoreParameterModel added in v0.3.0

type DatastoreParameterModel struct {
	Max             types.Float64 `tfsdk:"max"`
	Min             types.Float64 `tfsdk:"min"`
	Name            types.String  `tfsdk:"name"`
	RestartRequried types.Bool    `tfsdk:"restart_required"`
	Type            types.String  `tfsdk:"type"`
}

type DatastoreParametersDataSource added in v0.3.0

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

func (*DatastoreParametersDataSource) Configure added in v0.3.0

func (*DatastoreParametersDataSource) Metadata added in v0.3.0

func (*DatastoreParametersDataSource) Read added in v0.3.0

func (*DatastoreParametersDataSource) Schema added in v0.3.0

type DatastoreParametersDataSourceModel added in v0.3.0

type DatastoreParametersDataSourceModel struct {
	ID     types.String `tfsdk:"id"`
	Region types.String `tfsdk:"region"`

	DatastoreName      types.String              `tfsdk:"datastore_name"`
	DatastoreVersionID types.String              `tfsdk:"datastore_version_id"`
	Parameters         []DatastoreParameterModel `tfsdk:"parameters"`
}

type DatastoreVersionModel added in v0.3.0

type DatastoreVersionModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type DatastoresDataSource added in v0.3.0

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

func (*DatastoresDataSource) Configure added in v0.3.0

func (*DatastoresDataSource) Metadata added in v0.3.0

func (*DatastoresDataSource) Read added in v0.3.0

func (*DatastoresDataSource) Schema added in v0.3.0

type DatastoresDataSourceModel added in v0.3.0

type DatastoresDataSourceModel struct {
	ID     types.String `tfsdk:"id"`
	Region types.String `tfsdk:"region"`

	Datastores []DatastoreModel `tfsdk:"datastores"`
}

Jump to

Keyboard shortcuts

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