integration

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecurityGroup

func CreateSecurityGroup(ctx context.Context, awsClient *awsclient.Client, groupName string, vpcID string) (string, error)

CreateSecurityGroup creates a new security group.

func CreateSubnet

func CreateSubnet(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, vpcID string, cidr string, name string) (string, error)

CreateSubnet creates a new subnet and waits for it to become available.

func CreateVPC

func CreateVPC(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, vpcCIDR string, enableDnsHostnames bool) (string, string, error)

CreateVPC creates a new VPC and waits for it to become available. It returns the VPC ID, the Internet Gateway ID or an error in case something unexpected happens.

func DestroySecurityGroup

func DestroySecurityGroup(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, securityGroupID string) error

DestroySecurityGroup deletes an existing security group.

func DestroySubnet

func DestroySubnet(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, subnetID string) error

DestroySubnet deletes an existing subnet.

func DestroyVPC

func DestroyVPC(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, vpcID string) error

DestroyVPC deletes the Internet Gateway and the VPC itself.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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