Documentation ¶
Index ¶
- type Cache
- func (c *Cache) AddAZ(item *mysql.AZ)
- func (c *Cache) AddAZs(items []*mysql.AZ)
- func (c *Cache) AddCENs(items []*mysql.CEN)
- func (c *Cache) AddDHCPPorts(items []*mysql.DHCPPort)
- func (c *Cache) AddFloatingIPs(items []*mysql.FloatingIP)
- func (c *Cache) AddHost(item *mysql.Host)
- func (c *Cache) AddHosts(items []*mysql.Host)
- func (c *Cache) AddLANIPs(items []*mysql.LANIP)
- func (c *Cache) AddLBListeners(items []*mysql.LBListener)
- func (c *Cache) AddLBTargetServers(items []*mysql.LBTargetServer)
- func (c *Cache) AddLBVMConnections(items []*mysql.LBVMConnection)
- func (c *Cache) AddLBs(items []*mysql.LB)
- func (c *Cache) AddNATGateways(items []*mysql.NATGateway)
- func (c *Cache) AddNATRules(items []*mysql.NATRule)
- func (c *Cache) AddNATVMConnections(items []*mysql.NATVMConnection)
- func (c *Cache) AddNetwork(item *mysql.Network)
- func (c *Cache) AddNetworks(items []*mysql.Network)
- func (c *Cache) AddPeerConnections(items []*mysql.PeerConnection)
- func (c *Cache) AddPodClusters(items []*mysql.PodCluster)
- func (c *Cache) AddPodGroupPorts(items []*mysql.PodGroupPort)
- func (c *Cache) AddPodGroups(items []*mysql.PodGroup)
- func (c *Cache) AddPodIngress(item *mysql.PodIngress)
- func (c *Cache) AddPodIngressRuleBackends(items []*mysql.PodIngressRuleBackend)
- func (c *Cache) AddPodIngressRules(items []*mysql.PodIngressRule)
- func (c *Cache) AddPodIngresses(items []*mysql.PodIngress)
- func (c *Cache) AddPodNamespaces(items []*mysql.PodNamespace)
- func (c *Cache) AddPodNodes(items []*mysql.PodNode)
- func (c *Cache) AddPodReplicaSets(items []*mysql.PodReplicaSet)
- func (c *Cache) AddPodService(item *mysql.PodService)
- func (c *Cache) AddPodServicePorts(items []*mysql.PodServicePort)
- func (c *Cache) AddPodServices(items []*mysql.PodService)
- func (c *Cache) AddPods(items []*mysql.Pod)
- func (c *Cache) AddProcesses(items []*mysql.Process)
- func (c *Cache) AddPrometheusTargets(items []*mysql.PrometheusTarget)
- func (c *Cache) AddRDSInstances(items []*mysql.RDSInstance)
- func (c *Cache) AddRedisInstances(items []*mysql.RedisInstance)
- func (c *Cache) AddRegion(item *mysql.Region)
- func (c *Cache) AddRegions(items []*mysql.Region)
- func (c *Cache) AddRoutingTables(items []*mysql.RoutingTable)
- func (c *Cache) AddSecurityGroup(item *mysql.SecurityGroup)
- func (c *Cache) AddSecurityGroupRules(items []*mysql.SecurityGroupRule)
- func (c *Cache) AddSecurityGroups(items []*mysql.SecurityGroup)
- func (c *Cache) AddSubDomain(item *mysql.SubDomain)
- func (c *Cache) AddSubDomains(items []*mysql.SubDomain)
- func (c *Cache) AddSubnets(items []*mysql.Subnet)
- func (c *Cache) AddVIPs(items []*mysql.VIP)
- func (c *Cache) AddVInterfaces(items []*mysql.VInterface)
- func (c *Cache) AddVM(item *mysql.VM)
- func (c *Cache) AddVMPodNodeConnections(items []*mysql.VMPodNodeConnection)
- func (c *Cache) AddVMSecurityGroups(items []*mysql.VMSecurityGroup)
- func (c *Cache) AddVMs(items []*mysql.VM)
- func (c *Cache) AddVPCs(items []*mysql.VPC)
- func (c *Cache) AddVRouter(item *mysql.VRouter)
- func (c *Cache) AddVRouters(items []*mysql.VRouter)
- func (c *Cache) AddWANIPs(items []*mysql.WANIP)
- func (c *Cache) DeleteAZ(lcuuid string)
- func (c *Cache) DeleteAZs(lcuuids []string)
- func (c *Cache) DeleteCENs(lcuuids []string)
- func (c *Cache) DeleteDHCPPorts(lcuuids []string)
- func (c *Cache) DeleteFloatingIPs(lcuuids []string)
- func (c *Cache) DeleteHost(lcuuid string)
- func (c *Cache) DeleteHosts(lcuuids []string)
- func (c *Cache) DeleteLANIPs(lcuuids []string)
- func (c *Cache) DeleteLBListeners(lcuuids []string)
- func (c *Cache) DeleteLBTargetServers(lcuuids []string)
- func (c *Cache) DeleteLBVMConnections(lcuuids []string)
- func (c *Cache) DeleteLBs(lcuuids []string)
- func (c *Cache) DeleteNATGateways(lcuuids []string)
- func (c *Cache) DeleteNATRules(lcuuids []string)
- func (c *Cache) DeleteNATVMConnections(lcuuids []string)
- func (c *Cache) DeleteNetworks(lcuuids []string)
- func (c *Cache) DeletePeerConnections(lcuuids []string)
- func (c *Cache) DeletePodClusters(lcuuids []string)
- func (c *Cache) DeletePodGroupPorts(lcuuids []string)
- func (c *Cache) DeletePodGroups(lcuuids []string)
- func (c *Cache) DeletePodIngressRuleBackends(lcuuids []string)
- func (c *Cache) DeletePodIngressRules(lcuuids []string)
- func (c *Cache) DeletePodIngresses(lcuuids []string)
- func (c *Cache) DeletePodNamespaces(lcuuids []string)
- func (c *Cache) DeletePodNodes(lcuuids []string)
- func (c *Cache) DeletePodReplicaSets(lcuuids []string)
- func (c *Cache) DeletePodServicePorts(lcuuids []string)
- func (c *Cache) DeletePodServices(lcuuids []string)
- func (c *Cache) DeletePods(lcuuids []string)
- func (c *Cache) DeleteProcesses(lcuuids []string)
- func (c *Cache) DeletePrometheusTargets(lcuuids []string)
- func (c *Cache) DeleteRDSInstances(lcuuids []string)
- func (c *Cache) DeleteRedisInstances(lcuuids []string)
- func (c *Cache) DeleteRegion(lcuuid string)
- func (c *Cache) DeleteRegions(lcuuids []string)
- func (c *Cache) DeleteRoutingTables(lcuuids []string)
- func (c *Cache) DeleteSecurityGroupRules(lcuuids []string)
- func (c *Cache) DeleteSecurityGroups(lcuuids []string)
- func (c *Cache) DeleteSubDomain(lcuuid string)
- func (c *Cache) DeleteSubDomains(lcuuids []string)
- func (c *Cache) DeleteSubnets(lcuuids []string)
- func (c *Cache) DeleteVIPs(lcuuids []string)
- func (c *Cache) DeleteVInterfaces(lcuuids []string)
- func (c *Cache) DeleteVM(lcuuid string)
- func (c *Cache) DeleteVMPodNodeConnections(lcuuids []string)
- func (c *Cache) DeleteVMSecurityGroups(lcuuids []string)
- func (c *Cache) DeleteVMs(lcuuids []string)
- func (c *Cache) DeleteVPCs(lcuuids []string)
- func (c *Cache) DeleteVRouters(lcuuids []string)
- func (c *Cache) DeleteWANIPs(lcuuids []string)
- func (c *Cache) GetSequence() int
- func (c *Cache) Refresh()
- func (c *Cache) SetLogLevel(level logging.Level)
- func (c *Cache) SetSequence(sequence int)
- func (c *Cache) UpdateDHCPPort(cloudItem *cloudmodel.DHCPPort)
- func (c *Cache) UpdateHost(cloudItem *cloudmodel.Host)
- func (c *Cache) UpdateLB(cloudItem *cloudmodel.LB)
- func (c *Cache) UpdateNATGateway(cloudItem *cloudmodel.NATGateway)
- func (c *Cache) UpdateNetwork(cloudItem *cloudmodel.Network)
- func (c *Cache) UpdatePod(cloudItem *cloudmodel.Pod)
- func (c *Cache) UpdatePodNode(cloudItem *cloudmodel.PodNode)
- func (c *Cache) UpdatePodService(cloudItem *cloudmodel.PodService)
- func (c *Cache) UpdateRDSInstance(cloudItem *cloudmodel.RDSInstance)
- func (c *Cache) UpdateRedisInstance(cloudItem *cloudmodel.RedisInstance)
- func (c *Cache) UpdateVInterface(cloudItem *cloudmodel.VInterface)
- func (c *Cache) UpdateVM(cloudItem *cloudmodel.VM)
- func (c *Cache) UpdateVRouter(cloudItem *cloudmodel.VRouter)
- type CacheManager
- type LogController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Sequence int // 缓存的序列标识,根据刷新递增;为debug方便,设置为公有属性,需避免直接修改值,使用接口修改 DomainLcuuid string SubDomainLcuuid string DiffBaseDataSet *diffbase.DataSet ToolDataSet *tool.DataSet }
func (*Cache) AddDHCPPorts ¶
func (*Cache) AddFloatingIPs ¶
func (c *Cache) AddFloatingIPs(items []*mysql.FloatingIP)
func (*Cache) AddLBListeners ¶
func (c *Cache) AddLBListeners(items []*mysql.LBListener)
func (*Cache) AddLBTargetServers ¶
func (c *Cache) AddLBTargetServers(items []*mysql.LBTargetServer)
func (*Cache) AddLBVMConnections ¶
func (c *Cache) AddLBVMConnections(items []*mysql.LBVMConnection)
func (*Cache) AddNATGateways ¶
func (c *Cache) AddNATGateways(items []*mysql.NATGateway)
func (*Cache) AddNATRules ¶
func (*Cache) AddNATVMConnections ¶
func (c *Cache) AddNATVMConnections(items []*mysql.NATVMConnection)
func (*Cache) AddNetwork ¶
func (*Cache) AddNetworks ¶
func (*Cache) AddPeerConnections ¶
func (c *Cache) AddPeerConnections(items []*mysql.PeerConnection)
func (*Cache) AddPodClusters ¶
func (c *Cache) AddPodClusters(items []*mysql.PodCluster)
func (*Cache) AddPodGroupPorts ¶
func (c *Cache) AddPodGroupPorts(items []*mysql.PodGroupPort)
func (*Cache) AddPodGroups ¶
func (*Cache) AddPodIngress ¶
func (c *Cache) AddPodIngress(item *mysql.PodIngress)
func (*Cache) AddPodIngressRuleBackends ¶
func (c *Cache) AddPodIngressRuleBackends(items []*mysql.PodIngressRuleBackend)
func (*Cache) AddPodIngressRules ¶
func (c *Cache) AddPodIngressRules(items []*mysql.PodIngressRule)
func (*Cache) AddPodIngresses ¶
func (c *Cache) AddPodIngresses(items []*mysql.PodIngress)
func (*Cache) AddPodNamespaces ¶
func (c *Cache) AddPodNamespaces(items []*mysql.PodNamespace)
func (*Cache) AddPodNodes ¶
func (*Cache) AddPodReplicaSets ¶
func (c *Cache) AddPodReplicaSets(items []*mysql.PodReplicaSet)
func (*Cache) AddPodService ¶
func (c *Cache) AddPodService(item *mysql.PodService)
func (*Cache) AddPodServicePorts ¶
func (c *Cache) AddPodServicePorts(items []*mysql.PodServicePort)
func (*Cache) AddPodServices ¶
func (c *Cache) AddPodServices(items []*mysql.PodService)
func (*Cache) AddProcesses ¶
func (*Cache) AddPrometheusTargets ¶
func (c *Cache) AddPrometheusTargets(items []*mysql.PrometheusTarget)
func (*Cache) AddRDSInstances ¶
func (c *Cache) AddRDSInstances(items []*mysql.RDSInstance)
func (*Cache) AddRedisInstances ¶
func (c *Cache) AddRedisInstances(items []*mysql.RedisInstance)
func (*Cache) AddRegions ¶
func (*Cache) AddRoutingTables ¶
func (c *Cache) AddRoutingTables(items []*mysql.RoutingTable)
func (*Cache) AddSecurityGroup ¶
func (c *Cache) AddSecurityGroup(item *mysql.SecurityGroup)
func (*Cache) AddSecurityGroupRules ¶
func (c *Cache) AddSecurityGroupRules(items []*mysql.SecurityGroupRule)
func (*Cache) AddSecurityGroups ¶
func (c *Cache) AddSecurityGroups(items []*mysql.SecurityGroup)
func (*Cache) AddSubDomain ¶
func (*Cache) AddSubDomains ¶
func (*Cache) AddSubnets ¶
func (*Cache) AddVInterfaces ¶
func (c *Cache) AddVInterfaces(items []*mysql.VInterface)
func (*Cache) AddVMPodNodeConnections ¶
func (c *Cache) AddVMPodNodeConnections(items []*mysql.VMPodNodeConnection)
func (*Cache) AddVMSecurityGroups ¶
func (c *Cache) AddVMSecurityGroups(items []*mysql.VMSecurityGroup)
func (*Cache) AddVRouter ¶
func (*Cache) AddVRouters ¶
func (*Cache) DeleteCENs ¶
func (*Cache) DeleteDHCPPorts ¶
func (*Cache) DeleteFloatingIPs ¶
func (*Cache) DeleteHost ¶
func (*Cache) DeleteHosts ¶
func (*Cache) DeleteLANIPs ¶
func (*Cache) DeleteLBListeners ¶
func (*Cache) DeleteLBTargetServers ¶
func (*Cache) DeleteLBVMConnections ¶
func (*Cache) DeleteNATGateways ¶
func (*Cache) DeleteNATRules ¶
func (*Cache) DeleteNATVMConnections ¶
func (*Cache) DeleteNetworks ¶
func (*Cache) DeletePeerConnections ¶
func (*Cache) DeletePodClusters ¶
func (*Cache) DeletePodGroupPorts ¶
func (*Cache) DeletePodGroups ¶
func (*Cache) DeletePodIngressRuleBackends ¶
func (*Cache) DeletePodIngressRules ¶
func (*Cache) DeletePodIngresses ¶
func (*Cache) DeletePodNamespaces ¶
func (*Cache) DeletePodNodes ¶
func (*Cache) DeletePodReplicaSets ¶
func (*Cache) DeletePodServicePorts ¶
func (*Cache) DeletePodServices ¶
func (*Cache) DeletePods ¶
func (*Cache) DeleteProcesses ¶
func (*Cache) DeletePrometheusTargets ¶
func (*Cache) DeleteRDSInstances ¶
func (*Cache) DeleteRedisInstances ¶
func (*Cache) DeleteRegion ¶
func (*Cache) DeleteRegions ¶
func (*Cache) DeleteRoutingTables ¶
func (*Cache) DeleteSecurityGroupRules ¶
func (*Cache) DeleteSecurityGroups ¶
func (*Cache) DeleteSubDomain ¶
func (*Cache) DeleteSubDomains ¶
func (*Cache) DeleteSubnets ¶
func (*Cache) DeleteVIPs ¶
func (*Cache) DeleteVInterfaces ¶
func (*Cache) DeleteVMPodNodeConnections ¶
func (*Cache) DeleteVMSecurityGroups ¶
func (*Cache) DeleteVPCs ¶
func (*Cache) DeleteVRouters ¶
func (*Cache) DeleteWANIPs ¶
func (*Cache) GetSequence ¶
func (*Cache) SetLogLevel ¶
func (c *Cache) SetLogLevel(level logging.Level)
func (*Cache) SetSequence ¶
func (*Cache) UpdateDHCPPort ¶
func (c *Cache) UpdateDHCPPort(cloudItem *cloudmodel.DHCPPort)
func (*Cache) UpdateHost ¶
func (c *Cache) UpdateHost(cloudItem *cloudmodel.Host)
func (*Cache) UpdateLB ¶
func (c *Cache) UpdateLB(cloudItem *cloudmodel.LB)
func (*Cache) UpdateNATGateway ¶
func (c *Cache) UpdateNATGateway(cloudItem *cloudmodel.NATGateway)
func (*Cache) UpdateNetwork ¶
func (c *Cache) UpdateNetwork(cloudItem *cloudmodel.Network)
func (*Cache) UpdatePod ¶
func (c *Cache) UpdatePod(cloudItem *cloudmodel.Pod)
func (*Cache) UpdatePodNode ¶
func (c *Cache) UpdatePodNode(cloudItem *cloudmodel.PodNode)
func (*Cache) UpdatePodService ¶
func (c *Cache) UpdatePodService(cloudItem *cloudmodel.PodService)
func (*Cache) UpdateRDSInstance ¶
func (c *Cache) UpdateRDSInstance(cloudItem *cloudmodel.RDSInstance)
func (*Cache) UpdateRedisInstance ¶
func (c *Cache) UpdateRedisInstance(cloudItem *cloudmodel.RedisInstance)
func (*Cache) UpdateVInterface ¶
func (c *Cache) UpdateVInterface(cloudItem *cloudmodel.VInterface)
func (*Cache) UpdateVM ¶
func (c *Cache) UpdateVM(cloudItem *cloudmodel.VM)
func (*Cache) UpdateVRouter ¶
func (c *Cache) UpdateVRouter(cloudItem *cloudmodel.VRouter)
type CacheManager ¶
为支持domain及其sub_domain的独立刷新,将缓存拆分成对应的独立Cache
func NewCacheManager ¶
func NewCacheManager(domainLcuuid string) *CacheManager
func (*CacheManager) CreateSubDomainCacheIfNotExists ¶
func (m *CacheManager) CreateSubDomainCacheIfNotExists(subDomainLcuuid string) *Cache
func (*CacheManager) Refresh ¶
func (m *CacheManager) Refresh()
func (*CacheManager) SetLogLevel ¶
func (m *CacheManager) SetLogLevel(logLevel logging.Level)
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
Click to show internal directories.
Click to hide internal directories.