database

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AwsResourceName = "aws_db_instance"
View Source
const AzureMariaDbResourceName = "azurerm_mariadb_server"
View Source
const AzureMysqlResourceName = "azurerm_mysql_server"
View Source
const AzurePostgresqlResourceName = "azurerm_postgresql_server"

Variables

This section is empty.

Functions

func NewAzureDatabase

func NewAzureDatabase(server AzureDbServer) []output.TfBlock

Types

type AwsDbInstance

type AwsDbInstance struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_db_instance"`
	AllocatedStorage    int      `hcl:"allocated_storage"`
	Name                string   `hcl:"db_name" hcle:"omitempty"`
	Engine              string   `hcl:"engine"`
	EngineVersion       string   `hcl:"engine_version"`
	Username            string   `hcl:"username"`
	Password            string   `hcl:"password"`
	InstanceClass       string   `hcl:"instance_class"`
	Identifier          string   `hcl:"identifier"`
	SkipFinalSnapshot   bool     `hcl:"skip_final_snapshot"`
	DbSubnetGroupName   string   `hcl:"db_subnet_group_name,expr"`
	PubliclyAccessible  bool     `hcl:"publicly_accessible"`
	VpcSecurityGroupIds []string `hcl:"vpc_security_group_ids,expr"`
	Port                int      `hcl:"port" hcle:"omitempty"`

	// outputs
	Address string `json:"address" hcle:"omitempty"`
}

aws_db_instance

type AwsDbSubnetGroup

type AwsDbSubnetGroup struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_db_subnet_group"`
	Name                string   `hcl:"name"`
	Description         string   `hcl:"description"`
	SubnetIds           []string `hcl:"subnet_ids,expr"`
}

aws_db_subnet_group

func (AwsDbSubnetGroup) GetResourceName

func (dbSubGroup AwsDbSubnetGroup) GetResourceName() string

type AzureDatabaseEngine added in v0.1.39

type AzureDatabaseEngine interface {
	GetServerName() string
}

type AzureDbFirewallRule

type AzureDbFirewallRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_mysql_firewall_rule"`
	ServerName         string `hcl:"server_name,expr"`
	StartIpAddress     string `hcl:"start_ip_address"`
	EndIpAddress       string `hcl:"end_ip_address"`
}

type AzureDbServer

type AzureDbServer struct {
	*common.AzResource         `default:"name=azurerm_mysql_server"`
	AdministratorLogin         string
	AdministratorLoginPassword string
	SkuName                    string
	StorageMb                  int
	Version                    string
	Engine                     string
	SubnetIds                  []string
}

type AzureMariaDbFirewallRule added in v0.1.39

type AzureMariaDbFirewallRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_mariadb_firewall_rule"`
	ServerName         string `hcl:"server_name,expr"`
	StartIpAddress     string `hcl:"start_ip_address"`
	EndIpAddress       string `hcl:"end_ip_address"`
}

type AzureMariaDbServer added in v0.1.39

type AzureMariaDbServer struct {
	*common.AzResource         `hcl:",squash" default:"name=azurerm_mariadb_server"`
	AdministratorLogin         string `hcl:"administrator_login"`
	AdministratorLoginPassword string `hcl:"administrator_login_password"`
	SkuName                    string `hcl:"sku_name"`
	StorageMb                  int    `hcl:"storage_mb"`
	Version                    string `hcl:"version"`
	SslEnforcementEnabled      bool   `hcl:"ssl_enforcement_enabled"`
}

func (AzureMariaDbServer) GetServerName added in v0.1.39

func (db AzureMariaDbServer) GetServerName() string

type AzureMariaDbVirtualNetworkRule added in v0.1.39

type AzureMariaDbVirtualNetworkRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_mariadb_virtual_network_rule"`
	ServerName         string `hcl:"server_name,expr"`
	SubnetId           string `hcl:"subnet_id,expr"`
}

type AzureMySqlServer

type AzureMySqlServer struct {
	*common.AzResource           `hcl:",squash" default:"name=azurerm_mysql_server"`
	AdministratorLogin           string `hcl:"administrator_login"`
	AdministratorLoginPassword   string `hcl:"administrator_login_password"`
	SkuName                      string `hcl:"sku_name"`
	StorageMb                    int    `hcl:"storage_mb"`
	Version                      string `hcl:"version"`
	SslEnforcementEnabled        bool   `hcl:"ssl_enforcement_enabled"`
	SslMinimalTlsVersionEnforced string `hcl:"ssl_minimal_tls_version_enforced"`
}

func (AzureMySqlServer) GetServerName

func (db AzureMySqlServer) GetServerName() string

type AzureMySqlVirtualNetworkRule

type AzureMySqlVirtualNetworkRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_mysql_virtual_network_rule"`
	ServerName         string `hcl:"server_name,expr"`
	SubnetId           string `hcl:"subnet_id,expr"`
}

type AzurePostgreSqlFirewallRule added in v0.1.38

type AzurePostgreSqlFirewallRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_postgresql_firewall_rule"`
	ServerName         string `hcl:"server_name,expr"`
	StartIpAddress     string `hcl:"start_ip_address"`
	EndIpAddress       string `hcl:"end_ip_address"`
}

type AzurePostgreSqlServer added in v0.1.38

type AzurePostgreSqlServer struct {
	*common.AzResource           `hcl:",squash" default:"name=azurerm_postgresql_server"`
	AdministratorLogin           string `hcl:"administrator_login"`
	AdministratorLoginPassword   string `hcl:"administrator_login_password"`
	SkuName                      string `hcl:"sku_name"`
	StorageMb                    int    `hcl:"storage_mb"`
	Version                      string `hcl:"version"`
	SslEnforcementEnabled        bool   `hcl:"ssl_enforcement_enabled"`
	SslMinimalTlsVersionEnforced string `hcl:"ssl_minimal_tls_version_enforced"`
}

func (AzurePostgreSqlServer) GetServerName added in v0.1.38

func (db AzurePostgreSqlServer) GetServerName() string

type AzurePostgreSqlVirtualNetworkRule added in v0.1.38

type AzurePostgreSqlVirtualNetworkRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_postgresql_virtual_network_rule"`
	ServerName         string `hcl:"server_name,expr"`
	SubnetId           string `hcl:"subnet_id,expr"`
}

Jump to

Keyboard shortcuts

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