connection

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 FlattenCustomerNetworks

func FlattenCustomerNetworks(customerNetworks []client.CustomerNetwork) (out []map[string]string)

func FlattenNatConfig

func FlattenNatConfig(config *client.NatConfig) (out []map[string]interface{})

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 GetBaseDataSourceConnectionSchema

func GetBaseDataSourceConnectionSchema() map[string]*schema.Schema

func GetBaseResourceConnectionSchema

func GetBaseResourceConnectionSchema() map[string]*schema.Schema

func WaitForConnection

func WaitForConnection(name string, d *schema.ResourceData, m interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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