network

package
v0.1.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultVpcCIDR              = "10.10.0.0/16"
	DefaultSubnetCIDR           = "10.10.0.0/16"
	DefaultSubnetGateway        = "10.10.0.1"
	DefaultContainerNetworkMode = "eni"
	DefaultContainerNetworkCIDR = "10.101.0.0/16"
)

Functions

func CreatePublicIP

func CreatePublicIP(
	client *eip.EipClient, param *ccev1.CCEClusterPublicIP,
) (*eip_model.CreatePublicipResponse, error)

func CreateSubnet

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

func CreateVPC

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

func DeletePublicIP

func DeletePublicIP(client *eip.EipClient, ID string) (*eip_model.DeletePublicipResponse, error)

func DeleteRoute

func DeleteRoute(client *vpc.VpcClient, RouteID string) (*vpc_model.DeleteVpcRouteResponse, error)

func DeleteSubnet

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

func DeleteVPC

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

func GetPublicIP

func GetPublicIP(client *eip.EipClient, ID string) (*eip_model.ShowPublicipResponse, error)

func GetRouteTables

func GetRouteTables(
	client *vpc.VpcClient, RtID, VpcID, SubnetID string,
) (*vpc_model.ListRouteTablesResponse, error)

func GetSubnet

func GetSubnet(client *vpc.VpcClient, ID string) (*vpc_model.ShowSubnetResponse, error)

func GetVPC

func GetVPC(client *vpc.VpcClient, ID string) (*vpc_model.ShowVpcResponse, error)

func GetVpcRoute

func GetVpcRoute(client *vpc.VpcClient, RouteID string) (*vpc_model.ShowVpcRouteResponse, error)

func GetVpcRoutes

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

func GetVpcepService

func GetVpcepService(client *vpcep.VpcepClient, svcID string) (*vpcep_model.ListServiceDetailsResponse, error)

func GetVpcepServices

func GetVpcepServices(
	client *vpcep.VpcepClient, svcID string,
) (*vpcep_model.ListEndpointServiceResponse, error)

func ListNameServers

func ListNameServers(client *dns.DnsClient, region string) (*dns_model.ListNameServersResponse, error)

func ListSecurityGroups

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

func NewDnsClient

func NewDnsClient(c *common.ClientAuth) *dns.DnsClient

func NewEipClient

func NewEipClient(c *common.ClientAuth) *eip.EipClient

func NewVpcClient

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

func NewVpcepClient

func NewVpcepClient(c *common.ClientAuth) *vpcep.VpcepClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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