vpc

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfAtLeast2Subnets

func CheckIfAtLeast2Subnets(checkConfig commons.CheckConfig, vpcToSubnets []VPCToSubnet, testName string)

func CheckIfPrivateAndPublicSubnets added in v1.9.0

func CheckIfPrivateAndPublicSubnets(checkConfig commons.CheckConfig, vpcToSubnetWithRouteTables map[string][]SubnetWithRouteTables, testName string)

func CheckIfSubnetInDifferentZone

func CheckIfSubnetInDifferentZone(checkConfig commons.CheckConfig, vpcToSubnets []VPCToSubnet, testName string)

func GetListVPC

func GetListVPC(s aws.Config) []types.Vpc

func GetRouteTableForSubnet added in v1.9.0

func GetRouteTableForSubnet(s aws.Config, subnetsforvpcs []VPCToSubnet) map[string][]SubnetWithRouteTables

func RunChecks

func RunChecks(wa *sync.WaitGroup, s aws.Config, c *commons.Config, queue chan []commons.Check)

Types

type SubnetWithRouteTables added in v1.9.0

type SubnetWithRouteTables struct {
	SubnetId    string
	RouteTables []types.RouteTable
}

type VPCToSubnet

type VPCToSubnet struct {
	VpcID   string
	Subnets []types.Subnet
}

func GetSubnetForVPCS

func GetSubnetForVPCS(s aws.Config, vpcs []types.Vpc) []VPCToSubnet

type VpcToFlowLogs

type VpcToFlowLogs struct {
	VpcID    string
	FlowLogs []types.FlowLog
}

func GetFlowLogsForVpc

func GetFlowLogsForVpc(s aws.Config, vpcs []types.Vpc) []VpcToFlowLogs

type VpcToInternetGateway

type VpcToInternetGateway struct {
	VpcID            string
	InternetGateways []types.InternetGateway
}

func GetInternetGatewaysForVpc

func GetInternetGatewaysForVpc(s aws.Config, vpcs []types.Vpc) []VpcToInternetGateway

Jump to

Keyboard shortcuts

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