vpc

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCreationDateTagToIGW

func AddCreationDateTagToIGW(ec2Session ec2.EC2, vpcsId []*string, creationDate time.Time, ttl int64) error

func AddCreationDateTagToRTB

func AddCreationDateTagToRTB(ec2Session ec2.EC2, vpcsIds []*string, creationDate time.Time, ttl int64) error

func AddCreationDateTagToSG

func AddCreationDateTagToSG(ec2Session ec2.EC2, vpcsId []*string, creationDate time.Time, ttl int64) error

func AddCreationDateTagToSubnets

func AddCreationDateTagToSubnets(ec2Session ec2.EC2, vpcsIds []*string, creationDate time.Time, ttl int64) error

func DeleteExpiredVPC

func DeleteExpiredVPC(ec2Session ec2.EC2, tagName string, dryRun bool)

func DeleteInternetGatewaysByIds

func DeleteInternetGatewaysByIds(ec2Session ec2.EC2, internetGateways []InternetGateway)

func DeleteRouteTablesByIds

func DeleteRouteTablesByIds(ec2Session ec2.EC2, routeTables []RouteTable)

func DeleteSecurityGroupsByIds

func DeleteSecurityGroupsByIds(ec2Session ec2.EC2, securityGroups []SecurityGroup)

func DeleteSubnetsByIds

func DeleteSubnetsByIds(ec2Session ec2.EC2, subnets []Subnet)

func GetVpcsIdsByClusterNameTag

func GetVpcsIdsByClusterNameTag(ec2Session ec2.EC2, clusterName string) []*string

func SetInternetGatewaysIdsByVpcId

func SetInternetGatewaysIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)

func SetRouteTablesIdsByVpcId

func SetRouteTablesIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)

func SetSecurityGroupsIdsByVpcId

func SetSecurityGroupsIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)

func SetSubnetsIdsByVpcId

func SetSubnetsIdsByVpcId(ec2Session ec2.EC2, vpc *VpcInfo, waitGroup *sync.WaitGroup, tagName string)

func TagVPCsForDeletion

func TagVPCsForDeletion(ec2Session ec2.EC2, rdsSession rds.RDS, clusterId string, clusterCreationTime time.Time, clusterTtl int64) error

Types

type InternetGateway

type InternetGateway struct {
	Id           string
	CreationDate time.Time

	IsProtected bool
	// contains filtered or unexported fields
}

type RouteTable

type RouteTable struct {
	Id           string
	CreationDate time.Time

	Associations []*ec2.RouteTableAssociation
	IsProtected  bool
	// contains filtered or unexported fields
}

type SecurityGroup

type SecurityGroup struct {
	Id           string
	CreationDate time.Time

	IsProtected bool
	// contains filtered or unexported fields
}

type Subnet

type Subnet struct {
	Id           string
	CreationDate time.Time

	IsProtected bool
	// contains filtered or unexported fields
}

type VpcInfo

type VpcInfo struct {
	VpcId            *string
	SecurityGroups   []SecurityGroup
	InternetGateways []InternetGateway
	Subnets          []Subnet
	RouteTables      []RouteTable
	Status           string
	TTL              int64
	Tag              string
	CreationDate     time.Time
	IsProtected      bool
}

Jump to

Keyboard shortcuts

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