vpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSubnet

func AddSubnet(cfg aws.Config, input *ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error)

func CreateEC2

func CreateEC2(cfg aws.Config, instanceType, imageID string, keyPair string, subnetId *string) error

func CreateRoute

func CreateRoute(cfg aws.Config, input *ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error)

func CreateVPC

func CreateVPC(cfg aws.Config, input *ec2.CreateVpcInput) (*ec2.CreateVpcOutput, error)

func DeleteIP

func DeleteVPC

func DeleteVPC(cfg aws.Config, vpcID string, dryrun bool) error

func DescribeImages

func DescribeImages(cfg aws.Config) error

func DescribeInstances

func DescribeInstances(cfg aws.Config) error

func DescribeTypeOfferings

func DescribeTypeOfferings(cfg aws.Config) error

func FindIP

func FindIP(cfg aws.Config, name, value string) (*ec2.DescribeAddressesOutput, error)

func GetRTid

func GetRTid(cfg aws.Config, name string) (*string, *string, error)

func GetSubnetID

func GetSubnetID(cfg aws.Config, name string) (*string, *string, error)

Returns subnetID,vpcID,error

func GetVPCid

func GetVPCid(cfg aws.Config, name string) (*string, error)

func ListEC2

func ListEC2(cfg aws.Config) ([]string, error)

func ListEC2ENI

func ListEC2ENI(cfg aws.Config) (map[string][]string, []string, error)

func ListKeyPair

func ListKeyPair(cfg aws.Config) ([]string, error)

func ListRT

func ListSecurityGroups

func ListSecurityGroups(cfg aws.Config) ([]string, []string, error)

func ListVPC

func ListVPC(cfg aws.Config) (*ec2.DescribeVpcsOutput, error)

Types

type EC2DescribeVpcEndpointConnectionsAPI

type EC2DescribeVpcEndpointConnectionsAPI interface {
	DescribeVpcEndpointConnections(ctx context.Context,
		params *ec2.DescribeVpcEndpointConnectionsInput,
		optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointConnectionsOutput, error)
}

Jump to

Keyboard shortcuts

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