Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteConnection(name string, d *schema.ResourceData, m interface{}) error
- func ExpandCloudServices(d *schema.ResourceData) []client.Link
- func ExpandCustomerNetworks(d *schema.ResourceData) []client.CustomerNetwork
- func ExpandNATConfiguration(d *schema.ResourceData) *client.NatConfig
- func ExpandPeeringType(d *schema.ResourceData) *client.PeeringConfiguration
- func FlattenCustomerNetworks(customerNetworks []client.CustomerNetwork) (out []map[string]string)
- func FlattenNatConfig(config *client.NatConfig) (out []map[string]interface{})
- func FlattenStandardGateway(gateway *client.StandardGateway) (out map[string]interface{})
- func FlattenVpnGateway(gateway *client.VpnGateway) (out map[string]interface{})
- func GetBaseDataSourceConnectionSchema() map[string]*schema.Schema
- func GetBaseResourceConnectionSchema() map[string]*schema.Schema
- func WaitForConnection(name string, d *schema.ResourceData, m interface{}) error
Constants ¶
View Source
const ( AwsConnectionName = "AWS Cloud Connection" AzureConnectionName = "Azure Cloud Connection" GoogleConnectionName = "Google Cloud Connection" SiteVPNConnectionName = "SiteVPN Connection" CreateTimeout = 15 * time.Minute DeleteTimeout = 15 * time.Minute )
Variables ¶
View Source
var ( StandardGatewaySchema = map[string]*schema.Schema{ "availability_domain": { Type: schema.TypeString, Computed: true, }, "name": { Type: schema.TypeString, Computed: true, }, "description": { Type: schema.TypeString, Computed: true, }, "customer_asn": { Type: schema.TypeInt, Computed: true, }, "customer_ip": { Type: schema.TypeString, Computed: true, }, "pureport_asn": { Type: schema.TypeInt, Computed: true, }, "pureport_ip": { Type: schema.TypeString, Computed: true, }, "bgp_password": { Type: schema.TypeString, Computed: true, Sensitive: true, }, "peering_subnet": { Type: schema.TypeString, Computed: true, }, "public_nat_ip": { Type: schema.TypeString, Computed: true, }, "remote_id": { Type: schema.TypeString, Computed: true, }, "vlan": { Type: schema.TypeInt, Computed: true, }, } VpnGatewaySchema = map[string]*schema.Schema{ "availability_domain": { Type: schema.TypeString, Computed: true, }, "name": { Type: schema.TypeString, Computed: true, }, "description": { Type: schema.TypeString, Computed: true, }, "customer_asn": { Type: schema.TypeInt, Computed: true, }, "customer_ip": { Type: schema.TypeString, Computed: true, }, "pureport_asn": { Type: schema.TypeInt, Computed: true, }, "pureport_ip": { Type: schema.TypeString, Computed: true, }, "bgp_password": { Type: schema.TypeString, Computed: true, Sensitive: true, }, "peering_subnet": { Type: schema.TypeString, Computed: true, }, "public_nat_ip": { Type: schema.TypeString, Computed: true, }, "customer_gateway_ip": { Type: schema.TypeString, Computed: true, }, "customer_vti_ip": { Type: schema.TypeString, Computed: true, }, "pureport_gateway_ip": { Type: schema.TypeString, Computed: true, }, "pureport_vti_ip": { Type: schema.TypeString, Computed: true, }, "vpn_auth_type": { Type: schema.TypeString, Computed: true, }, "vpn_auth_key": { Type: schema.TypeString, Computed: true, }, } )
Functions ¶
func DeleteConnection ¶
func DeleteConnection(name string, d *schema.ResourceData, m interface{}) error
func ExpandCloudServices ¶
func ExpandCloudServices(d *schema.ResourceData) []client.Link
func ExpandCustomerNetworks ¶
func ExpandCustomerNetworks(d *schema.ResourceData) []client.CustomerNetwork
ExpandCustomerNetworks to decode the customer network information
func ExpandNATConfiguration ¶
func ExpandNATConfiguration(d *schema.ResourceData) *client.NatConfig
func ExpandPeeringType ¶
func ExpandPeeringType(d *schema.ResourceData) *client.PeeringConfiguration
func FlattenCustomerNetworks ¶
func FlattenCustomerNetworks(customerNetworks []client.CustomerNetwork) (out []map[string]string)
func FlattenNatConfig ¶
func FlattenStandardGateway ¶
func FlattenStandardGateway(gateway *client.StandardGateway) (out map[string]interface{})
FlattenGateway flattens the provide gateway to a map for use with terraform
func FlattenVpnGateway ¶
func FlattenVpnGateway(gateway *client.VpnGateway) (out map[string]interface{})
FlattenGateway flattens the provide gateway to a map for use with terraform
func WaitForConnection ¶
func WaitForConnection(name string, d *schema.ResourceData, m interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.