Documentation ¶
Index ¶
- type CreateInfracodeOfGcpAwsVpnRequest
- type CreateInfracodeOfGcpAzureVpnRequest
- type CreateInfracodeOfSqlDbRequest
- type CreateInfracodeOfTestEnvRequest
- type MyUser
- type OutputAWSSqlDbInfo
- type OutputAzureSqlDbInfo
- type OutputGCPSqlDbInfo
- type OutputGcpAwsVpnInfo
- type OutputGcpAzureVpnInfo
- type OutputNCPSqlDbInfo
- type Response
- type TerrariumInfo
- type TfVarsGcpAwsVpnTunnel
- type TfVarsGcpAzureVpnTunnel
- type TfVarsSqlDb
- type TfVarsTestEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInfracodeOfGcpAwsVpnRequest ¶
type CreateInfracodeOfGcpAwsVpnRequest struct {
TfVars TfVarsGcpAwsVpnTunnel `json:"tfVars"`
}
Reqeust bodies for GCP-AWS VPN
type CreateInfracodeOfGcpAzureVpnRequest ¶
type CreateInfracodeOfGcpAzureVpnRequest struct {
TfVars TfVarsGcpAzureVpnTunnel `json:"tfVars"`
}
Reqeust bodies for GCP-Azure VPN
type CreateInfracodeOfSqlDbRequest ¶ added in v0.0.11
type CreateInfracodeOfSqlDbRequest struct {
TfVars TfVarsSqlDb `json:"tfVars"`
}
Request body for sql-db
type CreateInfracodeOfTestEnvRequest ¶
type CreateInfracodeOfTestEnvRequest struct {
TfVars TfVarsTestEnv `json:"tfVars"`
}
Reqeust bodies for test-env
type OutputAWSSqlDbInfo ¶ added in v0.0.12
type OutputAWSSqlDbInfo struct { Terrarium struct { ID string `json:"id"` } `json:"terrarium"` AWS struct { InstanceIdentifier string `json:"instance_identifier"` ConnectionInfo string `json:"connection_info"` Port int `json:"port"` AdminUsername string `json:"admin_username"` DatabaseEngine string `json:"database_engine"` EngineVersion string `json:"engine_version"` Region string `json:"region"` VpcID string `json:"vpc_id"` SubnetIDs []string `json:"subnet_ids"` SecurityGroupName string `json:"security_group_name"` } `json:"aws"` }
type OutputAzureSqlDbInfo ¶ added in v0.0.12
type OutputAzureSqlDbInfo struct { Terrarium struct { ID string `json:"id"` } `json:"terrarium"` Azure struct { InstanceIdentifier string `json:"instance_identifier"` ConnectionInfo string `json:"connection_info"` Port int `json:"port"` AdminUsername string `json:"admin_username"` DatabaseName string `json:"database_name"` Region string `json:"region"` ResourceGroup string `json:"resource_group"` } `json:"azure"` }
type OutputGCPSqlDbInfo ¶ added in v0.0.12
type OutputGCPSqlDbInfo struct { Terrarium struct { ID string `json:"id"` } `json:"terrarium"` GCP struct { InstanceIdentifier string `json:"instance_identifier"` DatabaseName string `json:"database_name"` AdminUsername string `json:"admin_username"` ConnectionInfo string `json:"connection_info"` IPAddress string `json:"ip_address"` Port int `json:"port"` Region string `json:"region"` } `json:"gcp"` }
type OutputGcpAwsVpnInfo ¶ added in v0.0.10
type OutputGcpAwsVpnInfo struct { Terrarium struct { ID string `json:"id"` } `json:"terrarium"` AWS struct { VpnGateway struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` VpcID string `json:"vpc_id"` } `json:"vpn_gateway"` CustomerGateways []struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` IPAddress string `json:"ip_address"` BgpAsn string `json:"bgp_asn"` } `json:"customer_gateways"` VpnConnections []struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Tunnel1Address string `json:"tunnel1_address"` Tunnel2Address string `json:"tunnel2_address"` } `json:"vpn_connections"` } `json:"aws"` GCP struct { Router struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Network string `json:"network"` BgpAsn int `json:"bgp_asn"` } `json:"router"` HaVpnGateway struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Network string `json:"network"` IPAddresses []string `json:"ip_addresses"` } `json:"ha_vpn_gateway"` VpnTunnels []struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` IkeVersion int `json:"ike_version"` Interface int `json:"interface"` } `json:"vpn_tunnels"` } `json:"gcp"` }
type OutputGcpAzureVpnInfo ¶ added in v0.0.10
type OutputGcpAzureVpnInfo struct { Terrarium struct { ID string `json:"id"` } `json:"terrarium"` Azure struct { VirtualNetworkGateway struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Location string `json:"location"` VpnType string `json:"vpn_type"` Sku string `json:"sku"` BgpSettings struct { ASN int `json:"asn"` PeeringAddresses []struct { IPAddressConfig string `json:"ip_configuration"` Address string `json:"address"` } `json:"peering_addresses"` } `json:"bgp_settings"` } `json:"virtual_network_gateway"` PublicIPs struct { IP1 struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` IPAddress string `json:"ip_address"` } `json:"ip1"` IP2 struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` IPAddress string `json:"ip_address"` } `json:"ip2"` } `json:"public_ips"` Connections []struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Type string `json:"type"` EnableBgp bool `json:"enable_bgp"` } `json:"connections"` } `json:"azure"` GCP struct { Router struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Network string `json:"network"` Bgp struct { ASN int `json:"asn"` AdvertiseMode string `json:"advertise_mode"` } `json:"bgp"` } `json:"router"` HaVpnGateway struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Network string `json:"network"` Interfaces []struct { } `json:"interfaces"` } `json:"ha_vpn_gateway"` VpnTunnels []struct { ResourceType string `json:"resource_type"` Name string `json:"name"` ID string `json:"id"` Router string `json:"router"` Interface int `json:"interface"` } `json:"vpn_tunnels"` BgpPeers []struct { ResourceType string `json:"resource_type"` Name string `json:"name"` PeerIP string `json:"peer_ip"` PeerASN int `json:"peer_asn"` InterfaceName string `json:"interface_name"` } `json:"bgp_peers"` } `json:"gcp"` }
type OutputNCPSqlDbInfo ¶ added in v0.0.12
type OutputNCPSqlDbInfo struct { Terrarium struct { ID string `json:"id"` } `json:"terrarium"` NCP struct { InstanceIdentifier string `json:"instance_identifier"` ConnectionInfo string `json:"connection_info"` AdminUsername string `json:"admin_username"` DatabaseName string `json:"database_name"` Port int `json:"port"` Region string `json:"region"` } `json:"ncp"` }
type Response ¶
type Response struct { Success bool `json:"success" example:"true"` Status int `json:"status,omitempty" example:"200"` Message string `json:"message" example:"Any message"` Detail string `json:"details,omitempty" example:"Any details"` Object map[string]interface{} `json:"object,omitempty"` List []interface{} `json:"list,omitempty"` }
type TerrariumInfo ¶ added in v0.0.7
type TfVarsGcpAwsVpnTunnel ¶
type TfVarsGcpAwsVpnTunnel struct { TerrariumId string `json:"terrarium-id,omitempty" default:"" example:""` AwsRegion string `json:"aws-region" default:"ap-northeast-2" example:"ap-northeast-2"` AwsVpcId string `json:"aws-vpc-id" example:"vpc-xxxxx"` AwsSubnetId string `json:"aws-subnet-id" example:"subnet-xxxxx"` GcpRegion string `json:"gcp-region" default:"asia-northeast3" example:"asia-northeast3"` GcpVpcNetworkName string `json:"gcp-vpc-network-name" default:"tr-gcp-vpc" example:"tr-gcp-vpc"` }
type TfVarsGcpAzureVpnTunnel ¶
type TfVarsGcpAzureVpnTunnel struct { TerrariumId string `json:"terrarium-id,omitempty" default:"" example:""` AzureRegion string `json:"azure-region" default:"koreacentral" example:"koreacentral"` AzureResourceGroupName string `json:"azure-resource-group-name" default:"tr-rg-01" example:"tr-rg-01"` AzureVirtualNetworkName string `json:"azure-virtual-network-name" default:"tr-azure-vnet" example:"tr-azure-vnet"` AzureGatewaySubnetCidrBlock string `json:"azure-gateway-subnet-cidr-block" default:"192.168.130.0/24" example:"192.168.130.0/24"` GcpRegion string `json:"gcp-region" default:"asia-northeast3" example:"asia-northeast3"` GcpVpcNetworkName string `json:"gcp-vpc-network-name" default:"tr-gcp-vpc" example:"tr-gcp-vpc"` }
type TfVarsSqlDb ¶ added in v0.0.11
type TfVarsSqlDb struct { TerrariumID string `json:"terrarium_id" default:"" example:""` CSPRegion string `json:"csp_region" example:"ap-northeast-2"` CSPResourceGroup string `json:"csp_resource_group,omitempty" example:"rg-12345678"` CSPVNetID string `json:"csp_vnet_id,omitempty" example:"vpc-12345678"` CSPSubnet1ID string `json:"csp_subnet1_id,omitempty" example:"subnet-1234abcd"` CSPSubnet2ID string `json:"csp_subnet2_id,omitempty" example:"subnet-abcd1234"` DBEnginePort int `json:"db_engine_port,omitempty" example:"3306"` IngressCIDRBlock string `json:"ingress_cidr_block,omitempty" example:"0.0.0.0/0"` EgressCIDRBlock string `json:"egress_cidr_block,omitempty" example:"0.0.0.0/0"` DBEngineVersion string `json:"db_engine_version" example:"8.0.39"` DBInstanceSpec string `json:"db_instance_spec" example:"db.t3.micro"` DBAdminUsername string `json:"db_admin_username" example:"mydbadmin"` DBAdminPassword string `json:"db_admin_password" example:"P@ssword1234!"` }
TfVarsSqlDb represents the configuration structure based on the Terraform variables
type TfVarsTestEnv ¶
type TfVarsTestEnv struct { AzureRegion string `json:"azure-region" default:"koreacentral" example:"koreacentral"` AzureResourceGroupName string `json:"azure-resource-group-name" default:"tr-rg-01" example:"tr-rg-01"` GcpRegion string `json:"gcp-region" default:"asia-northeast3" example:"asia-northeast3"` AwsRegion string `json:"aws-region" default:"ap-northeast-2" example:"ap-northeast-2"` }
Click to show internal directories.
Click to hide internal directories.