module

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeNATGateways

func DescribeNATGateways(t *testing.T, sess *session.Session, vpcID string) map[string]*ec2.NatGateway

func DescribeVPC

func DescribeVPC(t *testing.T, sess *session.Session, vpcID string) *ec2.Vpc

func DescribeVPCSubnets

func DescribeVPCSubnets(t *testing.T, sess *session.Session, vpcID string) map[string]*ec2.Subnet

func GetSubnetAZs

func GetSubnetAZs(subnets map[string]*ec2.Subnet) map[string]struct{}

func GetSubnetTags

func GetSubnetTags(subnet *ec2.Subnet) map[string]string

func GetVPCTags

func GetVPCTags(vpc *ec2.Vpc) map[string]string

func NewSession

func NewSession(t *testing.T, region string) *session.Session

func RunTestSuite

func RunTestSuite(t *testing.T, vpcID string, region string, expected Expectations)

Types

type Expectations

type Expectations struct {
	CIDRBlock         string
	SubnetCIDRBlocks  map[string]bool
	AvailabilityZones []string
	NATGatewayCount   int
	IPV6Enabled       bool
	Tags              map[string]string
}

Jump to

Keyboard shortcuts

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