Documentation
¶
Index ¶
- type AZ
- type CEN
- type DHCPPort
- type DataSet
- func (b *DataSet) AddAZ(dbItem *mysqlmodel.AZ, seq int)
- func (b *DataSet) AddCEN(dbItem *mysqlmodel.CEN, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddDHCPPort(dbItem *mysqlmodel.DHCPPort, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddFloatingIP(dbItem *mysqlmodel.FloatingIP, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddHost(dbItem *mysqlmodel.Host, seq int)
- func (b *DataSet) AddLANIP(dbItem *mysqlmodel.LANIP, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddLB(dbItem *mysqlmodel.LB, seq int)
- func (b *DataSet) AddLBListener(dbItem *mysqlmodel.LBListener, seq int)
- func (b *DataSet) AddLBTargetServer(dbItem *mysqlmodel.LBTargetServer, seq int)
- func (b *DataSet) AddLBVMConnection(dbItem *mysqlmodel.LBVMConnection, seq int)
- func (b *DataSet) AddNATGateway(dbItem *mysqlmodel.NATGateway, seq int)
- func (b *DataSet) AddNATRule(dbItem *mysqlmodel.NATRule, seq int)
- func (b *DataSet) AddNATVMConnection(dbItem *mysqlmodel.NATVMConnection, seq int)
- func (b *DataSet) AddNetwork(dbItem *mysqlmodel.Network, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddPeerConnection(dbItem *mysqlmodel.PeerConnection, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddPod(dbItem *mysqlmodel.Pod, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddPodCluster(dbItem *mysqlmodel.PodCluster, seq int)
- func (b *DataSet) AddPodGroup(dbItem *mysqlmodel.PodGroup, seq int)
- func (b *DataSet) AddPodGroupPort(dbItem *mysqlmodel.PodGroupPort, seq int)
- func (b *DataSet) AddPodIngress(dbItem *mysqlmodel.PodIngress, seq int)
- func (b *DataSet) AddPodIngressRule(dbItem *mysqlmodel.PodIngressRule, seq int)
- func (b *DataSet) AddPodIngressRuleBackend(dbItem *mysqlmodel.PodIngressRuleBackend, seq int)
- func (b *DataSet) AddPodNamespace(dbItem *mysqlmodel.PodNamespace, seq int)
- func (b *DataSet) AddPodNode(dbItem *mysqlmodel.PodNode, seq int)
- func (b *DataSet) AddPodReplicaSet(dbItem *mysqlmodel.PodReplicaSet, seq int)
- func (b *DataSet) AddPodService(dbItem *mysqlmodel.PodService, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddPodServicePort(dbItem *mysqlmodel.PodServicePort, seq int)
- func (b *DataSet) AddProcess(dbItem *mysqlmodel.Process, seq int)
- func (b *DataSet) AddRDSInstance(dbItem *mysqlmodel.RDSInstance, seq int)
- func (b *DataSet) AddRedisInstance(dbItem *mysqlmodel.RedisInstance, seq int)
- func (b *DataSet) AddRegion(dbItem *mysqlmodel.Region, seq int)
- func (b *DataSet) AddRoutingTable(dbItem *mysqlmodel.RoutingTable, seq int)
- func (b *DataSet) AddSubDomain(dbItem *mysqlmodel.SubDomain, seq int)
- func (b *DataSet) AddSubnet(dbItem *mysqlmodel.Subnet, seq int)
- func (b *DataSet) AddVIP(dbItem *mysqlmodel.VIP, seq int)
- func (b *DataSet) AddVInterface(dbItem *mysqlmodel.VInterface, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddVM(dbItem *mysqlmodel.VM, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddVMPodNodeConnection(dbItem *mysqlmodel.VMPodNodeConnection, seq int)
- func (b *DataSet) AddVPC(dbItem *mysqlmodel.VPC, seq int)
- func (b *DataSet) AddVRouter(dbItem *mysqlmodel.VRouter, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) AddWANIP(dbItem *mysqlmodel.WANIP, seq int, toolDataSet *tool.DataSet)
- func (b *DataSet) DeleteAZ(lcuuid string)
- func (b *DataSet) DeleteCEN(lcuuid string)
- func (b *DataSet) DeleteDHCPPort(lcuuid string)
- func (b *DataSet) DeleteFloatingIP(lcuuid string)
- func (b *DataSet) DeleteHost(lcuuid string)
- func (b *DataSet) DeleteLANIP(lcuuid string)
- func (b *DataSet) DeleteLB(lcuuid string)
- func (b *DataSet) DeleteLBListener(lcuuid string)
- func (b *DataSet) DeleteLBTargetServer(lcuuid string)
- func (b *DataSet) DeleteLBVMConnection(lcuuid string)
- func (b *DataSet) DeleteNATGateway(lcuuid string)
- func (b *DataSet) DeleteNATRule(lcuuid string)
- func (b *DataSet) DeleteNATVMConnection(lcuuid string)
- func (b *DataSet) DeleteNetwork(lcuuid string)
- func (b *DataSet) DeletePeerConnection(lcuuid string)
- func (b *DataSet) DeletePod(lcuuid string)
- func (b *DataSet) DeletePodCluster(lcuuid string)
- func (b *DataSet) DeletePodGroup(lcuuid string)
- func (b *DataSet) DeletePodGroupPort(lcuuid string)
- func (b *DataSet) DeletePodIngress(lcuuid string)
- func (b *DataSet) DeletePodIngressRule(lcuuid string)
- func (b *DataSet) DeletePodIngressRuleBackend(lcuuid string)
- func (b *DataSet) DeletePodNamespace(lcuuid string)
- func (b *DataSet) DeletePodNode(lcuuid string)
- func (b *DataSet) DeletePodReplicaSet(lcuuid string)
- func (b *DataSet) DeletePodService(lcuuid string)
- func (b *DataSet) DeletePodServicePort(lcuuid string)
- func (b *DataSet) DeleteProcess(lcuuid string)
- func (b *DataSet) DeleteRDSInstance(lcuuid string)
- func (b *DataSet) DeleteRedisInstance(lcuuid string)
- func (b *DataSet) DeleteRegion(lcuuid string)
- func (b *DataSet) DeleteRoutingTable(lcuuid string)
- func (b *DataSet) DeleteSubDomain(lcuuid string)
- func (b *DataSet) DeleteSubnet(lcuuid string)
- func (b *DataSet) DeleteVIP(lcuuid string)
- func (b *DataSet) DeleteVInterface(lcuuid string)
- func (b *DataSet) DeleteVM(lcuuid string)
- func (b *DataSet) DeleteVMPodNodeConnection(lcuuid string)
- func (b *DataSet) DeleteVPC(lcuuid string)
- func (b *DataSet) DeleteVRouter(lcuuid string)
- func (b *DataSet) DeleteWANIP(lcuuid string)
- type DiffBase
- type FloatingIP
- type Host
- type LANIP
- type LB
- type LBListener
- type LBTargetServer
- type LBVMConnection
- type LogController
- type NATGateway
- type NATRule
- type NATVMConnection
- type Network
- type PeerConnection
- type Pod
- type PodCluster
- type PodGroup
- type PodGroupPort
- type PodIngress
- type PodIngressRule
- type PodIngressRuleBackend
- type PodNamespace
- type PodNode
- type PodReplicaSet
- type PodService
- type PodServicePort
- type Process
- type RDSInstance
- type RedisInstance
- type Region
- type RoutingTable
- type SubDomain
- type Subnet
- type VIP
- type VInterface
- type VM
- type VMPodNodeConnection
- type VPC
- type VRouter
- type WANIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AZ ¶
type AZ struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
RegionLcuuid string `json:"region_lcuuid"`
}
func (*AZ) Update ¶
func (a *AZ) Update(cloudItem *cloudmodel.AZ)
type DHCPPort ¶
type DHCPPort struct {
DiffBase
Name string `json:"name"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
VPCLcuuid string `json:"vpc_lcuuid"`
}
func (*DHCPPort) Update ¶
func (d *DHCPPort) Update(cloudItem *cloudmodel.DHCPPort)
type DataSet ¶
type DataSet struct {
LogController
Regions map[string]*Region
AZs map[string]*AZ
SubDomains map[string]*SubDomain
Hosts map[string]*Host
VMs map[string]*VM
VPCs map[string]*VPC
Networks map[string]*Network
Subnets map[string]*Subnet
VRouters map[string]*VRouter
RoutingTables map[string]*RoutingTable
DHCPPorts map[string]*DHCPPort
VInterfaces map[string]*VInterface
WANIPs map[string]*WANIP
LANIPs map[string]*LANIP
FloatingIPs map[string]*FloatingIP
NATGateways map[string]*NATGateway
NATVMConnections map[string]*NATVMConnection
NATRules map[string]*NATRule
LBs map[string]*LB
LBVMConnections map[string]*LBVMConnection
LBListeners map[string]*LBListener
LBTargetServers map[string]*LBTargetServer
PeerConnections map[string]*PeerConnection
CENs map[string]*CEN
RDSInstances map[string]*RDSInstance
RedisInstances map[string]*RedisInstance
PodClusters map[string]*PodCluster
PodNodes map[string]*PodNode
VMPodNodeConnections map[string]*VMPodNodeConnection
PodNamespaces map[string]*PodNamespace
PodIngresses map[string]*PodIngress
PodIngressRules map[string]*PodIngressRule
PodIngressRuleBackends map[string]*PodIngressRuleBackend
PodServices map[string]*PodService
PodServicePorts map[string]*PodServicePort
PodGroups map[string]*PodGroup
PodGroupPorts map[string]*PodGroupPort
PodReplicaSets map[string]*PodReplicaSet
Pods map[string]*Pod
Process map[string]*Process
VIP map[string]*VIP
// contains filtered or unexported fields
}
所有资源的主要信息,用于与cloud数据比较差异,根据差异更新资源 应保持字段定义与cloud字段定义一致,用于在比较资源时可以抽象方法
func NewDataSet ¶
func (*DataSet) AddDHCPPort ¶
func (*DataSet) AddFloatingIP ¶
func (b *DataSet) AddFloatingIP(dbItem *mysqlmodel.FloatingIP, seq int, toolDataSet *tool.DataSet)
func (*DataSet) AddLBListener ¶
func (b *DataSet) AddLBListener(dbItem *mysqlmodel.LBListener, seq int)
func (*DataSet) AddLBTargetServer ¶
func (b *DataSet) AddLBTargetServer(dbItem *mysqlmodel.LBTargetServer, seq int)
func (*DataSet) AddLBVMConnection ¶
func (b *DataSet) AddLBVMConnection(dbItem *mysqlmodel.LBVMConnection, seq int)
func (*DataSet) AddNATGateway ¶
func (b *DataSet) AddNATGateway(dbItem *mysqlmodel.NATGateway, seq int)
func (*DataSet) AddNATRule ¶
func (b *DataSet) AddNATRule(dbItem *mysqlmodel.NATRule, seq int)
func (*DataSet) AddNATVMConnection ¶
func (b *DataSet) AddNATVMConnection(dbItem *mysqlmodel.NATVMConnection, seq int)
func (*DataSet) AddNetwork ¶
func (*DataSet) AddPeerConnection ¶
func (b *DataSet) AddPeerConnection(dbItem *mysqlmodel.PeerConnection, seq int, toolDataSet *tool.DataSet)
func (*DataSet) AddPodCluster ¶
func (b *DataSet) AddPodCluster(dbItem *mysqlmodel.PodCluster, seq int)
func (*DataSet) AddPodGroup ¶
func (b *DataSet) AddPodGroup(dbItem *mysqlmodel.PodGroup, seq int)
func (*DataSet) AddPodGroupPort ¶
func (b *DataSet) AddPodGroupPort(dbItem *mysqlmodel.PodGroupPort, seq int)
func (*DataSet) AddPodIngress ¶
func (b *DataSet) AddPodIngress(dbItem *mysqlmodel.PodIngress, seq int)
func (*DataSet) AddPodIngressRule ¶
func (b *DataSet) AddPodIngressRule(dbItem *mysqlmodel.PodIngressRule, seq int)
func (*DataSet) AddPodIngressRuleBackend ¶
func (b *DataSet) AddPodIngressRuleBackend(dbItem *mysqlmodel.PodIngressRuleBackend, seq int)
func (*DataSet) AddPodNamespace ¶
func (b *DataSet) AddPodNamespace(dbItem *mysqlmodel.PodNamespace, seq int)
func (*DataSet) AddPodNode ¶
func (b *DataSet) AddPodNode(dbItem *mysqlmodel.PodNode, seq int)
func (*DataSet) AddPodReplicaSet ¶
func (b *DataSet) AddPodReplicaSet(dbItem *mysqlmodel.PodReplicaSet, seq int)
func (*DataSet) AddPodService ¶
func (b *DataSet) AddPodService(dbItem *mysqlmodel.PodService, seq int, toolDataSet *tool.DataSet)
func (*DataSet) AddPodServicePort ¶
func (b *DataSet) AddPodServicePort(dbItem *mysqlmodel.PodServicePort, seq int)
func (*DataSet) AddProcess ¶
func (b *DataSet) AddProcess(dbItem *mysqlmodel.Process, seq int)
func (*DataSet) AddRDSInstance ¶
func (b *DataSet) AddRDSInstance(dbItem *mysqlmodel.RDSInstance, seq int)
func (*DataSet) AddRedisInstance ¶
func (b *DataSet) AddRedisInstance(dbItem *mysqlmodel.RedisInstance, seq int)
func (*DataSet) AddRoutingTable ¶
func (b *DataSet) AddRoutingTable(dbItem *mysqlmodel.RoutingTable, seq int)
func (*DataSet) AddSubDomain ¶
func (b *DataSet) AddSubDomain(dbItem *mysqlmodel.SubDomain, seq int)
func (*DataSet) AddVInterface ¶
func (b *DataSet) AddVInterface(dbItem *mysqlmodel.VInterface, seq int, toolDataSet *tool.DataSet)
func (*DataSet) AddVMPodNodeConnection ¶
func (b *DataSet) AddVMPodNodeConnection(dbItem *mysqlmodel.VMPodNodeConnection, seq int)
func (*DataSet) AddVRouter ¶
func (*DataSet) DeleteDHCPPort ¶
func (*DataSet) DeleteFloatingIP ¶
func (*DataSet) DeleteHost ¶
func (*DataSet) DeleteLANIP ¶
func (*DataSet) DeleteLBListener ¶
func (*DataSet) DeleteLBTargetServer ¶
func (*DataSet) DeleteLBVMConnection ¶
func (*DataSet) DeleteNATGateway ¶
func (*DataSet) DeleteNATRule ¶
func (*DataSet) DeleteNATVMConnection ¶
func (*DataSet) DeleteNetwork ¶
func (*DataSet) DeletePeerConnection ¶
func (*DataSet) DeletePodCluster ¶
func (*DataSet) DeletePodGroup ¶
func (*DataSet) DeletePodGroupPort ¶
func (*DataSet) DeletePodIngress ¶
func (*DataSet) DeletePodIngressRule ¶
func (*DataSet) DeletePodIngressRuleBackend ¶
func (*DataSet) DeletePodNamespace ¶
func (*DataSet) DeletePodNode ¶
func (*DataSet) DeletePodReplicaSet ¶
func (*DataSet) DeletePodService ¶
func (*DataSet) DeletePodServicePort ¶
func (*DataSet) DeleteProcess ¶
func (*DataSet) DeleteRDSInstance ¶
func (*DataSet) DeleteRedisInstance ¶
func (*DataSet) DeleteRegion ¶
func (*DataSet) DeleteRoutingTable ¶
func (*DataSet) DeleteSubDomain ¶
func (*DataSet) DeleteSubnet ¶
func (*DataSet) DeleteVInterface ¶
func (*DataSet) DeleteVMPodNodeConnection ¶
func (*DataSet) DeleteVRouter ¶
func (*DataSet) DeleteWANIP ¶
type FloatingIP ¶
type FloatingIP struct {
DiffBase
RegionLcuuid string `json:"region_lcuuid"`
VPCLcuuid string `json:"vpc_lcuuid"`
}
func (*FloatingIP) Update ¶
func (f *FloatingIP) Update(cloudItem *cloudmodel.FloatingIP)
type Host ¶
type Host struct {
DiffBase
Name string `json:"name"`
IP string `json:"ip"`
Hostname string `json:"hostname"`
HType int `json:"htype"`
VCPUNum int `json:"vcpu_num"`
MemTotal int `json:"mem_total"`
ExtraInfo string `json:"extra_info"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
}
func (*Host) Update ¶
func (h *Host) Update(cloudItem *cloudmodel.Host)
type LANIP ¶
type LANIP struct {
DiffBase
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
SubnetLcuuid string `json:"subnet_lcuuid"`
}
func (*LANIP) Update ¶
func (l *LANIP) Update(cloudItem *cloudmodel.IP)
type LB ¶
type LB struct {
DiffBase
Name string `json:"name"`
Model int `json:"model"`
VIP string `json:"vip"`
VPCLcuuid string `json:"vpc_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
}
func (*LB) Update ¶
func (l *LB) Update(cloudItem *cloudmodel.LB)
type LBListener ¶
type LBListener struct {
DiffBase
Name string `json:"name"`
IPs string `json:"ips"`
SNATIPs string `json:"snat_ips"`
Port int `json:"port"`
Protocol string `json:"protocal"`
}
func (*LBListener) Update ¶
func (l *LBListener) Update(cloudItem *cloudmodel.LBListener)
type LBTargetServer ¶
type LBTargetServer struct {
DiffBase
IP string `json:"ip"`
Port int `json:"port"`
Protocol string `json:"protocal"`
}
func (*LBTargetServer) Update ¶
func (l *LBTargetServer) Update(cloudItem *cloudmodel.LBTargetServer)
type LBVMConnection ¶
type LBVMConnection struct {
DiffBase
}
type LogController ¶
type LogController struct {
// contains filtered or unexported fields
}
func (*LogController) GetLogFunc ¶
func (l *LogController) GetLogFunc() func(args ...interface{})
func (*LogController) SetLogLevel ¶
func (l *LogController) SetLogLevel(level logging.Level) error
type NATGateway ¶
type NATGateway struct {
DiffBase
Name string `json:"name"`
FloatingIPs string `json:"floating_ips"`
RegionLcuuid string `json:"region_lcuuid"`
}
func (*NATGateway) Update ¶
func (n *NATGateway) Update(cloudItem *cloudmodel.NATGateway)
type NATVMConnection ¶
type NATVMConnection struct {
DiffBase
}
type Network ¶
type Network struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
TunnelID int `json:"tunnel_id"`
NetType int `json:"net_type"`
SegmentationID int `json:"segmentation_id"`
VPCLcuuid string `json:"vpc_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*Network) Update ¶
func (n *Network) Update(cloudItem *cloudmodel.Network)
type PeerConnection ¶
type PeerConnection struct {
DiffBase
Name string `json:"name"`
RemoteRegionLcuuid string `json:"remote_region_lcuuid"`
LocalRegionLcuuid string `json:"local_region_lcuuid"`
}
func (*PeerConnection) Update ¶
func (p *PeerConnection) Update(cloudItem *cloudmodel.PeerConnection)
type Pod ¶
type Pod struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
Annotation string `json:"annotation"`
ENV string `json:"env"`
ContainerIDs string `json:"container_ids"`
State int `json:"state"`
CreatedAt time.Time `json:"created_at"`
PodNodeLcuuid string `json:"pod_node_lcuuid"`
PodReplicaSetLcuuid string `json:"pod_replica_set_lcuuid"`
PodGroupLcuuid string `json:"pod_group_lcuuid"`
PodServiceLcuuid string `json:"pod_service_lcuuid"`
VPCLcuuid string `json:"vpc_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*Pod) Update ¶
func (p *Pod) Update(cloudItem *cloudmodel.Pod)
type PodCluster ¶
type PodCluster struct {
DiffBase
Name string `json:"name"`
ClusterName string `json:"cluster_name"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodCluster) Update ¶
func (p *PodCluster) Update(cloudItem *cloudmodel.PodCluster)
type PodGroup ¶
type PodGroup struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
PodNum int `json:"pod_num"`
Type int `json:"type"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodGroup) Update ¶
func (p *PodGroup) Update(cloudItem *cloudmodel.PodGroup)
type PodGroupPort ¶
type PodGroupPort struct {
DiffBase
Name string `json:"name"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodGroupPort) Update ¶
func (p *PodGroupPort) Update(cloudItem *cloudmodel.PodGroupPort)
type PodIngress ¶
type PodIngress struct {
DiffBase
Name string `json:"name"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodIngress) Update ¶
func (p *PodIngress) Update(cloudItem *cloudmodel.PodIngress)
type PodIngressRule ¶
type PodIngressRuleBackend ¶
type PodNamespace ¶
type PodNamespace struct {
DiffBase
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
CloudTags map[string]string `json:"cloud_tags"`
}
func (*PodNamespace) Update ¶
func (p *PodNamespace) Update(cloudItem *cloudmodel.PodNamespace)
type PodNode ¶
type PodNode struct {
DiffBase
Type int `json:"type"`
State int `json:"state"`
Hostname string `json:"hostname"`
IP string `json:"ip"`
VCPUNum int `json:"vcpu_num"`
MemTotal int `json:"mem_total"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodNode) Update ¶
func (p *PodNode) Update(cloudItem *cloudmodel.PodNode)
type PodReplicaSet ¶
type PodReplicaSet struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
PodNum int `json:"pod_num"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodReplicaSet) Update ¶
func (p *PodReplicaSet) Update(cloudItem *cloudmodel.PodReplicaSet)
type PodService ¶
type PodService struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
Annotation string `json:"annotation"`
Selector string `json:"selector"`
ExternalIP string `json:"external_ip"`
ServiceClusterIP string `json:"service_cluster_ip"`
PodIngressLcuuid string `json:"pod_ingress_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodService) Update ¶
func (p *PodService) Update(cloudItem *cloudmodel.PodService)
type PodServicePort ¶
type PodServicePort struct {
DiffBase
Name string `json:"name"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*PodServicePort) Update ¶
func (p *PodServicePort) Update(cloudItem *cloudmodel.PodServicePort)
type Process ¶
type RDSInstance ¶
type RDSInstance struct {
DiffBase
Name string `json:"name"`
State int `json:"state"`
Series int `json:"series"`
Model int `json:"model"`
VPCLcuuid string `json:"vpc_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
}
func (*RDSInstance) Update ¶
func (r *RDSInstance) Update(cloudItem *cloudmodel.RDSInstance)
type RedisInstance ¶
type RedisInstance struct {
DiffBase
Name string `json:"name"`
State int `json:"state"`
PublicHost string `json:"public_host"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
}
func (*RedisInstance) Update ¶
func (r *RedisInstance) Update(cloudItem *cloudmodel.RedisInstance)
type RoutingTable ¶
type RoutingTable struct {
DiffBase
Destination string `json:"destination"`
Nexthop string `json:"nexthop"`
NexthopType string `json:"nexthop_type"`
}
func (*RoutingTable) Update ¶
func (r *RoutingTable) Update(cloudItem *cloudmodel.RoutingTable)
type SubDomain ¶
func (*SubDomain) Update ¶
func (s *SubDomain) Update(cloudItem *cloudmodel.SubDomain)
type Subnet ¶
type Subnet struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*Subnet) Update ¶
func (s *Subnet) Update(cloudItem *cloudmodel.Subnet)
type VIP ¶
type VIP struct {
DiffBase
IP string `json:"ip" binding:"required"`
VTapID uint32 `json:"vtap_id" binding:"required"`
}
func (*VIP) Update ¶
func (p *VIP) Update(cloudItem *cloudmodel.VIP)
type VInterface ¶
type VInterface struct {
DiffBase
Name string `json:"name"`
Type int `json:"type"`
TapMac string `json:"tap_mac"`
NetnsID uint32 `json:"netns_id"`
VtapID uint32 `json:"vtap_id"`
DeviceType int `json:"device_type"`
DeviceLcuuid string `json:"device_lcuuid"`
NetworkLcuuid string `json:"network_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
SubDomainLcuuid string `json:"sub_domain_lcuuid"`
}
func (*VInterface) Update ¶
func (v *VInterface) Update(cloudItem *cloudmodel.VInterface)
type VM ¶
type VM struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
IP string `json:"ip"`
Hostname string `json:"hostname"`
State int `json:"state"`
HType int `json:"htype"`
LaunchServer string `json:"launch_server"`
HostID int `json:"host_id"`
VPCLcuuid string `json:"vpc_lcuuid"`
RegionLcuuid string `json:"region_lcuuid"`
AZLcuuid string `json:"az_lcuuid"`
CloudTags map[string]string `json:"cloud_tags"`
}
type VMPodNodeConnection ¶
type VPC ¶
type VPC struct {
DiffBase
Name string `json:"name"`
Label string `json:"label"`
TunnelID int `json:"tunnel_id"`
CIDR string `json:"cidr"`
RegionLcuuid string `json:"region_lcuuid"`
}
func (*VPC) Update ¶
func (v *VPC) Update(cloudItem *cloudmodel.VPC)
Source Files
¶
- az.go
- cen.go
- dhcp_port.go
- diff_base.go
- floating_ip.go
- host.go
- lan_ip.go
- lb.go
- lb_listener.go
- lb_target_server.go
- lb_vm_connection.go
- logger.go
- nat_gateway.go
- nat_rule.go
- nat_vm_connection.go
- network.go
- peer_connection.go
- pod.go
- pod_cluster.go
- pod_group.go
- pod_group_port.go
- pod_ingress.go
- pod_ingress_rule.go
- pod_ingress_rule_backend.go
- pod_namespace.go
- pod_node.go
- pod_replica_set.go
- pod_service.go
- pod_service_port.go
- process.go
- rds_instance.go
- redis_instance.go
- region.go
- routing_table.go
- sub_domain.go
- subnet.go
- vinterface.go
- vip.go
- vm.go
- vm_pod_node_connection.go
- vpc.go
- vrouter.go
- wan_ip.go
Click to show internal directories.
Click to hide internal directories.