db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

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 DataSourceDatabaseBackup

func DataSourceDatabaseBackup() *schema.Resource

func DataSourceDatabaseConfigGroup

func DataSourceDatabaseConfigGroup() *schema.Resource

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 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 ResourceDatabaseBackup

func ResourceDatabaseBackup() *schema.Resource

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 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