vpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultVpcCIDR       = "10.224.0.0/16"
	DefaultSubnetCIDR    = "10.224.0.0/16"
	DefaultSubnetGateway = "10.224.0.1"
)

Functions

func CreateSubnet

func CreateSubnet(client *vpc.VpcClient, name, vpcID, pDNS, sDNS string) (*model.CreateSubnetResponse, error)

func CreateVPC

func CreateVPC(client *vpc.VpcClient, name, cidr string) (*model.CreateVpcResponse, error)

func DeleteSubnet

func DeleteSubnet(
	client *vpc.VpcClient, vpcID string, subnetID string,
) (*model.DeleteSubnetResponse, error)

func DeleteVPC

func DeleteVPC(client *vpc.VpcClient, ID string) (*model.DeleteVpcResponse, error)

func DeleteVpcRoute

func DeleteVpcRoute(client *vpc.VpcClient, RouteID string) (*model.DeleteVpcRouteResponse, error)

func GetVpcRoutes

func GetVpcRoutes(
	client *vpc.VpcClient, vpcID string,
) (*model.ListVpcRoutesResponse, error)

func ListRouteTables

func ListRouteTables(
	client *vpc.VpcClient, RtID, VpcID, SubnetID string,
) (*model.ListRouteTablesResponse, error)

func ListSecurityGroups

func ListSecurityGroups(client *vpc.VpcClient, vpcID string) (*model.ListSecurityGroupsResponse, error)

func NewVpcClient

func NewVpcClient(c *common.ClientAuth) *vpc.VpcClient

func ShowSubnet

func ShowSubnet(client *vpc.VpcClient, ID string) (*model.ShowSubnetResponse, error)

func ShowVPC

func ShowVPC(client *vpc.VpcClient, ID string) (*model.ShowVpcResponse, error)

func ShowVpcRoute

func ShowVpcRoute(client *vpc.VpcClient, RouteID string) (*model.ShowVpcRouteResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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