Documentation ¶
Index ¶
- func AddCidrBlock(cfg aws.Config, input *ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error)
- func AddSubnet(cfg aws.Config, input *ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error)
- func AllocateIP(cfg aws.Config, input *ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error)
- func AssociateRT(cfg aws.Config, input *ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error)
- func AttachGW(cfg aws.Config, input *ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error)
- func CreateEC2(cfg aws.Config, instanceType, imageID string, keyPair string, subnetId *string) error
- func CreateGW(cfg aws.Config, input *ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error)
- func CreateNatGW(cfg aws.Config, input *ec2.CreateNatGatewayInput) (*ec2.CreateNatGatewayOutput, error)
- func CreateRT(cfg aws.Config, input *ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, error)
- func CreateRoute(cfg aws.Config, input *ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error)
- func CreateVPC(cfg aws.Config, input *ec2.CreateVpcInput) (*ec2.CreateVpcOutput, error)
- func DeleteIP(cfg aws.Config, input *ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error)
- func DeleteNatGW(cfg aws.Config, input *ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error)
- func DeleteVPC(cfg aws.Config, vpcID string, dryrun bool) error
- func DescribeImages(cfg aws.Config) error
- func DescribeInstances(cfg aws.Config) error
- func DescribeTypeOfferings(cfg aws.Config) error
- func FindIP(cfg aws.Config, name, value string) (*ec2.DescribeAddressesOutput, error)
- func GetConnectionInfo(c context.Context, api EC2DescribeVpcEndpointConnectionsAPI, ...) (*ec2.DescribeVpcEndpointConnectionsOutput, error)
- func GetRTid(cfg aws.Config, name string) (*string, *string, error)
- func GetSubnetID(cfg aws.Config, name string) (*string, *string, error)
- func GetVPCid(cfg aws.Config, name string) (*string, error)
- func ListEC2(cfg aws.Config) ([]string, error)
- func ListEC2ENI(cfg aws.Config) (map[string][]string, []string, error)
- func ListGW(cfg aws.Config) (*ec2.DescribeInternetGatewaysOutput, error)
- func ListIP(cfg aws.Config, input *ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error)
- func ListKeyPair(cfg aws.Config) ([]string, error)
- func ListNatGW(cfg aws.Config, input *ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error)
- func ListRT(cfg aws.Config) (*ec2.DescribeRouteTablesOutput, error)
- func ListSecurityGroups(cfg aws.Config) ([]string, []string, error)
- func ListSubnet(cfg aws.Config, input *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
- func ListVPC(cfg aws.Config) (*ec2.DescribeVpcsOutput, error)
- func ListVPCConnections(cfg aws.Config) error
- func ModifyNetworkInterface(cfg aws.Config, input *ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error)
- func ModifySubnet(cfg aws.Config, input *ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error)
- type EC2DescribeVpcEndpointConnectionsAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCidrBlock ¶
func AddCidrBlock(cfg aws.Config, input *ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error)
func AddSubnet ¶
func AddSubnet(cfg aws.Config, input *ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error)
func AllocateIP ¶
func AllocateIP(cfg aws.Config, input *ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error)
func AssociateRT ¶
func AssociateRT(cfg aws.Config, input *ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error)
func AttachGW ¶
func AttachGW(cfg aws.Config, input *ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error)
func CreateGW ¶
func CreateGW(cfg aws.Config, input *ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error)
func CreateNatGW ¶
func CreateNatGW(cfg aws.Config, input *ec2.CreateNatGatewayInput) (*ec2.CreateNatGatewayOutput, error)
func CreateRT ¶
func CreateRT(cfg aws.Config, input *ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, 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 DeleteIP(cfg aws.Config, input *ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error)
func DeleteNatGW ¶
func DeleteNatGW(cfg aws.Config, input *ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error)
func DescribeImages ¶
func DescribeInstances ¶
func DescribeTypeOfferings ¶
func GetConnectionInfo ¶
func GetConnectionInfo(c context.Context, api EC2DescribeVpcEndpointConnectionsAPI, input *ec2.DescribeVpcEndpointConnectionsInput) (*ec2.DescribeVpcEndpointConnectionsOutput, error)
func GetSubnetID ¶
Returns subnetID,vpcID,error
func ListIP ¶
func ListIP(cfg aws.Config, input *ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error)
func ListNatGW ¶
func ListNatGW(cfg aws.Config, input *ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error)
func ListSubnet ¶
func ListSubnet(cfg aws.Config, input *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
func ListVPCConnections ¶
Ref https://aws.github.io/aws-sdk-go-v2/docs/code-examples/ec2/describevpcendpoints/
func ModifyNetworkInterface ¶
func ModifyNetworkInterface(cfg aws.Config, input *ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error)
func ModifySubnet ¶
func ModifySubnet(cfg aws.Config, input *ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error)
Types ¶
type EC2DescribeVpcEndpointConnectionsAPI ¶
type EC2DescribeVpcEndpointConnectionsAPI interface { DescribeVpcEndpointConnections(ctx context.Context, params *ec2.DescribeVpcEndpointConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointConnectionsOutput, error) }
Click to show internal directories.
Click to hide internal directories.