test

package
v0.0.0-...-8790277 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDBData

func ClearDBData[MT constraint.MySQLModel](db *gorm.DB)

func FormatLcuuid

func FormatLcuuid(lcuuid string) string

func GetDB

func GetDB(dbFile string) *gorm.DB

func GetModels

func GetModels() []interface{}

func NewCloudAZ

func NewCloudAZ(regionLcuuid string) cloudmodel.AZ

func NewCloudCEN

func NewCloudCEN(vpcLcuuids []string) cloudmodel.CEN

func NewCloudDHCPPort

func NewCloudDHCPPort(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.DHCPPort

func NewCloudFloatingIP

func NewCloudFloatingIP(regionLcuuid, vpcLcuuid, networkLcuuid, vmLcuuid string) cloudmodel.FloatingIP

func NewCloudHost

func NewCloudHost(regionLcuuid, azLcuuid string) cloudmodel.Host

func NewCloudIP

func NewCloudIP(regionLcuuid, subDomainLcuuid, SubnetLcuuid, vinterfaceLcuuid string) cloudmodel.IP

func NewCloudLB

func NewCloudLB(regionLcuuid, vpcLcuuid string) cloudmodel.LB

func NewCloudLBListener

func NewCloudLBListener(lbLcuuid string) cloudmodel.LBListener

func NewCloudLBTargetServer

func NewCloudLBTargetServer(lbLcuuid, lbListenerLcuuid, VPCLcuuid, vmLcuuid string) cloudmodel.LBTargetServer

func NewCloudLBVMConnection

func NewCloudLBVMConnection(lbLcuuid, vmLcuuid string) cloudmodel.LBVMConnection

func NewCloudNATGateway

func NewCloudNATGateway(regionLcuuid, vpcLcuuid string) cloudmodel.NATGateway

func NewCloudNATRule

func NewCloudNATRule(natGatewayLcuuid string) cloudmodel.NATRule

func NewCloudNetwork

func NewCloudNetwork(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid string) cloudmodel.Network

func NewCloudPeerConnection

func NewCloudPeerConnection(localVPCLcuuid, remoteVPCLcuuid, localRegionLcuuid, remoteRegionLcuuid string) cloudmodel.PeerConnection

func NewCloudPod

func NewCloudPod(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid, podClusterLcuuid, podNodeLcuuid, podNamespaceLcuuid, podGroupLcuuid, podReplicaSetLcuuid string) cloudmodel.Pod

func NewCloudPodCluster

func NewCloudPodCluster(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid string) cloudmodel.PodCluster

func NewCloudPodGroup

func NewCloudPodGroup(regionLcuuid, azLcuuid, subDomainLcuuid, podClusterLcuuid, podNamespaceLcuuid string) cloudmodel.PodGroup

func NewCloudPodGroupPort

func NewCloudPodGroupPort(subDomainLcuuid, podServiceLcuuid, podGroupLcuuid string) cloudmodel.PodGroupPort

func NewCloudPodIngress

func NewCloudPodIngress(regionLcuuid, azLcuuid, subDomainLcuuid, podClusterLcuuid, podNamespaceLcuuid string) cloudmodel.PodIngress

func NewCloudPodIngressRule

func NewCloudPodIngressRule(subDomainLcuuid, PodIngressLcuuid string) cloudmodel.PodIngressRule

func NewCloudPodIngressRuleBackend

func NewCloudPodIngressRuleBackend(subDomainLcuuid, podIngressLcuuid, podIngressRuleLcuuid, podServiceLcuuid string) cloudmodel.PodIngressRuleBackend

func NewCloudPodNamespace

func NewCloudPodNamespace(regionLcuuid, azLcuuid, subDomainLcuuid, podClusterLcuuid string) cloudmodel.PodNamespace

func NewCloudPodNode

func NewCloudPodNode(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid, podClusterLcuuid string) cloudmodel.PodNode

func NewCloudPodReplicaSet

func NewCloudPodReplicaSet(regionLcuuid, azLcuuid, subDomainLcuuid, podClusterLcuuid, podNamespaceLcuuid, podGroupLcuuid string) cloudmodel.PodReplicaSet

func NewCloudPodService

func NewCloudPodService(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid, podClusterLcuuid, podNamespaceLcuuid, podIngressLcuuid string) cloudmodel.PodService

func NewCloudPodServicePort

func NewCloudPodServicePort(subDomainLcuuid, podServiceLcuuid string) cloudmodel.PodServicePort

func NewCloudRDSInstance

func NewCloudRDSInstance(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.RDSInstance

func NewCloudRedisInstance

func NewCloudRedisInstance(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.RedisInstance

func NewCloudRegion

func NewCloudRegion() cloudmodel.Region

func NewCloudResource

func NewCloudResource(baseCount int) cloudmodel.Resource

构造cloud数据 参数:baseCount,指定一个数据基数,用于构造数据数量

func NewCloudRoutingTable

func NewCloudRoutingTable(vrouterLcuuid string) cloudmodel.RoutingTable

func NewCloudSecurityGroup

func NewCloudSecurityGroup(regionLcuuid, vpcLcuuid string) cloudmodel.SecurityGroup

func NewCloudSecurityGroupRule

func NewCloudSecurityGroupRule(securityGroupLcuuid string) cloudmodel.SecurityGroupRule

func NewCloudSubDomain

func NewCloudSubDomain() cloudmodel.SubDomain

func NewCloudSubnet

func NewCloudSubnet(subDomainLcuuid, vpcLcuuid, networkLcuuid string) cloudmodel.Subnet

func NewCloudVInterface

func NewCloudVInterface(regionLcuuid, subDomainLcuuid, vpcLcuuid, networkLcuuid, deviceLcuuid string, deviceType, vifType int) cloudmodel.VInterface

func NewCloudVM

func NewCloudVM(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.VM

func NewCloudVMPodNodeConnection

func NewCloudVMPodNodeConnection(subDomainLcuuid, vmLcuuid, PodNodeLcuuid string) cloudmodel.VMPodNodeConnection

func NewCloudVMSecurityGroup

func NewCloudVMSecurityGroup(vmLcuuid, securityGroupLcuuid string) cloudmodel.VMSecurityGroup

func NewCloudVPC

func NewCloudVPC(regionLcuuid string) cloudmodel.VPC

func NewCloudVRouter

func NewCloudVRouter(regionLcuuid, vpcLcuuid string) cloudmodel.VRouter

func RandID

func RandID() int

func RandName

func RandName() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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