Documentation ¶
Index ¶
- func ClearDBData[MT constraint.MySQLModel](db *gorm.DB)
- func FormatLcuuid(lcuuid string) string
- func GetDB(dbFile string) *gorm.DB
- func GetModels() []interface{}
- func NewCloudAZ(regionLcuuid string) cloudmodel.AZ
- func NewCloudCEN(vpcLcuuids []string) cloudmodel.CEN
- func NewCloudDHCPPort(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.DHCPPort
- func NewCloudFloatingIP(regionLcuuid, vpcLcuuid, networkLcuuid, vmLcuuid string) cloudmodel.FloatingIP
- func NewCloudHost(regionLcuuid, azLcuuid string) cloudmodel.Host
- func NewCloudIP(regionLcuuid, subDomainLcuuid, SubnetLcuuid, vinterfaceLcuuid string) cloudmodel.IP
- func NewCloudLB(regionLcuuid, vpcLcuuid string) cloudmodel.LB
- func NewCloudLBListener(lbLcuuid string) cloudmodel.LBListener
- func NewCloudLBTargetServer(lbLcuuid, lbListenerLcuuid, VPCLcuuid, vmLcuuid string) cloudmodel.LBTargetServer
- func NewCloudLBVMConnection(lbLcuuid, vmLcuuid string) cloudmodel.LBVMConnection
- func NewCloudNATGateway(regionLcuuid, vpcLcuuid string) cloudmodel.NATGateway
- func NewCloudNATRule(natGatewayLcuuid string) cloudmodel.NATRule
- func NewCloudNetwork(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid string) cloudmodel.Network
- func NewCloudPeerConnection(localVPCLcuuid, remoteVPCLcuuid, localRegionLcuuid, remoteRegionLcuuid string) cloudmodel.PeerConnection
- func NewCloudPod(...) cloudmodel.Pod
- func NewCloudPodCluster(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid string) cloudmodel.PodCluster
- func NewCloudPodGroup(...) cloudmodel.PodGroup
- func NewCloudPodGroupPort(subDomainLcuuid, podServiceLcuuid, podGroupLcuuid string) cloudmodel.PodGroupPort
- func NewCloudPodIngress(...) cloudmodel.PodIngress
- func NewCloudPodIngressRule(subDomainLcuuid, PodIngressLcuuid string) cloudmodel.PodIngressRule
- func NewCloudPodIngressRuleBackend(...) cloudmodel.PodIngressRuleBackend
- func NewCloudPodNamespace(regionLcuuid, azLcuuid, subDomainLcuuid, podClusterLcuuid string) cloudmodel.PodNamespace
- func NewCloudPodNode(regionLcuuid, azLcuuid, subDomainLcuuid, vpcLcuuid, podClusterLcuuid string) cloudmodel.PodNode
- func NewCloudPodReplicaSet(...) cloudmodel.PodReplicaSet
- func NewCloudPodService(...) cloudmodel.PodService
- func NewCloudPodServicePort(subDomainLcuuid, podServiceLcuuid string) cloudmodel.PodServicePort
- func NewCloudRDSInstance(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.RDSInstance
- func NewCloudRedisInstance(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.RedisInstance
- func NewCloudRegion() cloudmodel.Region
- func NewCloudResource(baseCount int) cloudmodel.Resource
- func NewCloudRoutingTable(vrouterLcuuid string) cloudmodel.RoutingTable
- func NewCloudSubDomain() cloudmodel.SubDomain
- func NewCloudSubnet(subDomainLcuuid, vpcLcuuid, networkLcuuid string) cloudmodel.Subnet
- func NewCloudVInterface(regionLcuuid, subDomainLcuuid, vpcLcuuid, networkLcuuid, deviceLcuuid string, ...) cloudmodel.VInterface
- func NewCloudVM(regionLcuuid, azLcuuid, vpcLcuuid string) cloudmodel.VM
- func NewCloudVMPodNodeConnection(subDomainLcuuid, vmLcuuid, PodNodeLcuuid string) cloudmodel.VMPodNodeConnection
- func NewCloudVPC(regionLcuuid string) cloudmodel.VPC
- func NewCloudVRouter(regionLcuuid, vpcLcuuid string) cloudmodel.VRouter
- func RandID() int
- func RandName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDBData ¶
func ClearDBData[MT constraint.MySQLModel](db *gorm.DB)
func FormatLcuuid ¶
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 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 NewCloudVPC ¶
func NewCloudVPC(regionLcuuid string) cloudmodel.VPC
func NewCloudVRouter ¶
func NewCloudVRouter(regionLcuuid, vpcLcuuid string) cloudmodel.VRouter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.