tool

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSet

type DataSet struct {
	LogController

	// 仅资源变更事件所需的数据
	EventDataSet
	// contains filtered or unexported fields
}

各类资源的映射关系,用于刷新资源时,转换所需数据

func NewDataSet

func NewDataSet(md *rcommon.Metadata) *DataSet

func (*DataSet) AddAZ

func (t *DataSet) AddAZ(item *mysqlmodel.AZ)

func (*DataSet) AddDHCPPort

func (t *DataSet) AddDHCPPort(item *mysqlmodel.DHCPPort)

func (*DataSet) AddHost

func (t *DataSet) AddHost(item *mysqlmodel.Host)

func (*DataSet) AddLANIP

func (t *DataSet) AddLANIP(item *mysqlmodel.LANIP)

func (*DataSet) AddLB

func (t *DataSet) AddLB(item *mysqlmodel.LB)

func (*DataSet) AddLBListener

func (t *DataSet) AddLBListener(item *mysqlmodel.LBListener)

func (*DataSet) AddNATGateway

func (t *DataSet) AddNATGateway(item *mysqlmodel.NATGateway)

func (*DataSet) AddNetwork

func (t *DataSet) AddNetwork(item *mysqlmodel.Network)

func (*DataSet) AddPod

func (t *DataSet) AddPod(item *mysqlmodel.Pod)

func (*DataSet) AddPodCluster

func (t *DataSet) AddPodCluster(item *mysqlmodel.PodCluster)

func (*DataSet) AddPodGroup

func (t *DataSet) AddPodGroup(item *mysqlmodel.PodGroup)

func (*DataSet) AddPodIngress

func (t *DataSet) AddPodIngress(item *mysqlmodel.PodIngress)

func (*DataSet) AddPodIngressRule

func (t *DataSet) AddPodIngressRule(item *mysqlmodel.PodIngressRule)

func (*DataSet) AddPodNamespace

func (t *DataSet) AddPodNamespace(item *mysqlmodel.PodNamespace)

func (*DataSet) AddPodNode

func (t *DataSet) AddPodNode(item *mysqlmodel.PodNode)

func (*DataSet) AddPodReplicaSet

func (t *DataSet) AddPodReplicaSet(item *mysqlmodel.PodReplicaSet)

func (*DataSet) AddPodService

func (t *DataSet) AddPodService(item *mysqlmodel.PodService)

func (*DataSet) AddProcess

func (t *DataSet) AddProcess(item *mysqlmodel.Process)

func (*DataSet) AddRDSInstance

func (t *DataSet) AddRDSInstance(item *mysqlmodel.RDSInstance)

func (*DataSet) AddRedisInstance

func (t *DataSet) AddRedisInstance(item *mysqlmodel.RedisInstance)

func (*DataSet) AddRegion

func (t *DataSet) AddRegion(item *mysqlmodel.Region)

func (*DataSet) AddSubnet

func (t *DataSet) AddSubnet(item *mysqlmodel.Subnet)

func (*DataSet) AddVInterface

func (t *DataSet) AddVInterface(item *mysqlmodel.VInterface)

func (*DataSet) AddVM

func (t *DataSet) AddVM(item *mysqlmodel.VM)

func (*DataSet) AddVMPodNodeConnection

func (t *DataSet) AddVMPodNodeConnection(item *mysqlmodel.VMPodNodeConnection)

func (*DataSet) AddVPC

func (t *DataSet) AddVPC(item *mysqlmodel.VPC)

func (*DataSet) AddVRouter

func (t *DataSet) AddVRouter(item *mysqlmodel.VRouter)

func (*DataSet) AddWANIP

func (t *DataSet) AddWANIP(item *mysqlmodel.WANIP)

func (*DataSet) DeleteAZ

func (t *DataSet) DeleteAZ(lcuuid string)

func (*DataSet) DeleteDHCPPort

func (t *DataSet) DeleteDHCPPort(lcuuid string)

func (*DataSet) DeleteHost

func (t *DataSet) DeleteHost(lcuuid string)

func (*DataSet) DeleteLANIP

func (t *DataSet) DeleteLANIP(lcuuid string)

func (*DataSet) DeleteLB

func (t *DataSet) DeleteLB(lcuuid string)

func (*DataSet) DeleteLBListener

func (t *DataSet) DeleteLBListener(lcuuid string)

func (*DataSet) DeleteNATGateway

func (t *DataSet) DeleteNATGateway(lcuuid string)

func (*DataSet) DeleteNetwork

func (t *DataSet) DeleteNetwork(lcuuid string)

func (*DataSet) DeletePod

func (t *DataSet) DeletePod(lcuuid string)

func (*DataSet) DeletePodCluster

func (t *DataSet) DeletePodCluster(lcuuid string)

func (*DataSet) DeletePodGroup

func (t *DataSet) DeletePodGroup(lcuuid string)

func (*DataSet) DeletePodIngress

func (t *DataSet) DeletePodIngress(lcuuid string)

func (*DataSet) DeletePodIngressRule

func (t *DataSet) DeletePodIngressRule(lcuuid string)

func (*DataSet) DeletePodNamespace

func (t *DataSet) DeletePodNamespace(lcuuid string)

func (*DataSet) DeletePodNode

func (t *DataSet) DeletePodNode(lcuuid string)

func (*DataSet) DeletePodReplicaSet

func (t *DataSet) DeletePodReplicaSet(lcuuid string)

func (*DataSet) DeletePodService

func (t *DataSet) DeletePodService(lcuuid string)

func (*DataSet) DeleteProcess

func (t *DataSet) DeleteProcess(lcuuid string)

func (*DataSet) DeleteRDSInstance

func (t *DataSet) DeleteRDSInstance(lcuuid string)

func (*DataSet) DeleteRedisInstance

func (t *DataSet) DeleteRedisInstance(lcuuid string)

func (*DataSet) DeleteRegion

func (t *DataSet) DeleteRegion(lcuuid string)

func (*DataSet) DeleteSubnet

func (t *DataSet) DeleteSubnet(lcuuid string)

func (*DataSet) DeleteVInterface

func (t *DataSet) DeleteVInterface(lcuuid string)

func (*DataSet) DeleteVM

func (t *DataSet) DeleteVM(lcuuid string)

func (*DataSet) DeleteVMPodNodeConnection

func (t *DataSet) DeleteVMPodNodeConnection(lcuuid string)

func (*DataSet) DeleteVPC

func (t *DataSet) DeleteVPC(lcuuid string)

func (*DataSet) DeleteVRouter

func (t *DataSet) DeleteVRouter(lcuuid string)

func (*DataSet) DeleteWANIP

func (t *DataSet) DeleteWANIP(lcuuid string)

func (*DataSet) GetAZIDByLcuuid

func (t *DataSet) GetAZIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetDHCPPortIDByLcuuid

func (t *DataSet) GetDHCPPortIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetDHCPPortInfoByID

func (t *DataSet) GetDHCPPortInfoByID(id int) (*dhcpPortInfo, error)

func (*DataSet) GetDHCPPortLcuuidByID

func (t *DataSet) GetDHCPPortLcuuidByID(id int) (string, bool)

func (*DataSet) GetDHCPPortNameByID

func (t *DataSet) GetDHCPPortNameByID(id int) (string, error)

func (*DataSet) GetDeviceIDByDeviceLcuuid

func (t *DataSet) GetDeviceIDByDeviceLcuuid(deviceType int, deviceLcuuid string) (int, bool)

func (*DataSet) GetDeviceIDByVInterfaceLcuuid

func (t *DataSet) GetDeviceIDByVInterfaceLcuuid(vifLcuuid string) (int, bool)

func (*DataSet) GetDeviceLcuuidByID

func (t *DataSet) GetDeviceLcuuidByID(deviceType, deviceID int) (string, bool)

func (*DataSet) GetDeviceNameByDeviceID

func (t *DataSet) GetDeviceNameByDeviceID(deviceType, deviceID int) (string, error)

func (*DataSet) GetDeviceTypeByVInterfaceLcuuid

func (t *DataSet) GetDeviceTypeByVInterfaceLcuuid(vifLcuuid string) (int, bool)

func (*DataSet) GetHostIDByIP

func (t *DataSet) GetHostIDByIP(ip string) (int, bool)

func (*DataSet) GetHostIDByLcuuid

func (t *DataSet) GetHostIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetHostInfoByID

func (t *DataSet) GetHostInfoByID(id int) (*hostInfo, error)

func (*DataSet) GetHostLcuuidByID

func (t *DataSet) GetHostLcuuidByID(id int) (string, bool)

func (*DataSet) GetHostNameByID

func (t *DataSet) GetHostNameByID(id int) (string, error)

func (*DataSet) GetLANIPByLcuuid

func (t *DataSet) GetLANIPByLcuuid(lcuuid string) (string, bool)

func (*DataSet) GetLBIDByLcuuid

func (t *DataSet) GetLBIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetLBInfoByID

func (t *DataSet) GetLBInfoByID(id int) (*lbInfo, error)

func (*DataSet) GetLBLcuuidByID

func (t *DataSet) GetLBLcuuidByID(id int) (string, bool)

func (*DataSet) GetLBListenerIDByLcuuid

func (t *DataSet) GetLBListenerIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetLBNameByID

func (t *DataSet) GetLBNameByID(id int) (string, error)

func (*DataSet) GetMacByVInterfaceLcuuid

func (t *DataSet) GetMacByVInterfaceLcuuid(vifLcuuid string) (string, bool)

func (*DataSet) GetMetadata

func (t *DataSet) GetMetadata() *rcommon.Metadata

func (*DataSet) GetNATGatewayIDByLcuuid

func (t *DataSet) GetNATGatewayIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetNATGatewayInfoByID

func (t *DataSet) GetNATGatewayInfoByID(id int) (*natGatewayInfo, error)

func (*DataSet) GetNATGatewayLcuuidByID

func (t *DataSet) GetNATGatewayLcuuidByID(id int) (string, bool)

func (*DataSet) GetNATGatewayNameByID

func (t *DataSet) GetNATGatewayNameByID(id int) (string, error)

func (*DataSet) GetNetworkIDByLcuuid

func (t *DataSet) GetNetworkIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetNetworkIDByVInterfaceLcuuid

func (t *DataSet) GetNetworkIDByVInterfaceLcuuid(vifLcuuid string) (int, bool)

func (*DataSet) GetNetworkLcuuidByID

func (t *DataSet) GetNetworkLcuuidByID(id int) (string, bool)

func (*DataSet) GetNetworkNameByID

func (t *DataSet) GetNetworkNameByID(id int) (string, bool)

func (*DataSet) GetPodClusterIDByLcuuid

func (t *DataSet) GetPodClusterIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodGroupIDByLcuuid

func (t *DataSet) GetPodGroupIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodGroupLcuuidByID

func (t *DataSet) GetPodGroupLcuuidByID(id int) (string, bool)

func (*DataSet) GetPodGroupTypeByID

func (t *DataSet) GetPodGroupTypeByID(id int) (int, bool)

func (*DataSet) GetPodIDByContainerIDWithoutLog

func (t *DataSet) GetPodIDByContainerIDWithoutLog(containerID string) (int, bool)

func (*DataSet) GetPodIDByLcuuid

func (t *DataSet) GetPodIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodInfoByID

func (t *DataSet) GetPodInfoByID(id int) (*podInfo, error)

func (*DataSet) GetPodIngressIDByLcuuid

func (t *DataSet) GetPodIngressIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodIngressLcuuidByID

func (t *DataSet) GetPodIngressLcuuidByID(id int) (string, bool)

func (*DataSet) GetPodIngressRuleIDByLcuuid

func (t *DataSet) GetPodIngressRuleIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodLcuuidByID

func (t *DataSet) GetPodLcuuidByID(id int) (string, bool)

func (*DataSet) GetPodNameByID

func (t *DataSet) GetPodNameByID(id int) (string, error)

func (*DataSet) GetPodNamespaceIDByLcuuid

func (t *DataSet) GetPodNamespaceIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodNodeIDByLcuuid

func (t *DataSet) GetPodNodeIDByLcuuid(lcuuid string) int

func (*DataSet) GetPodNodeIDByVMPodNodeConnectionLcuuid

func (t *DataSet) GetPodNodeIDByVMPodNodeConnectionLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodNodeInfoByID

func (t *DataSet) GetPodNodeInfoByID(id int) (*podNodeInfo, error)

func (*DataSet) GetPodNodeLcuuidByID

func (t *DataSet) GetPodNodeLcuuidByID(id int) (string, bool)

func (*DataSet) GetPodNodeNameByID

func (t *DataSet) GetPodNodeNameByID(id int) (string, error)

func (*DataSet) GetPodReplicaSetIDByLcuuid

func (t *DataSet) GetPodReplicaSetIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodReplicaSetLcuuidByID

func (t *DataSet) GetPodReplicaSetLcuuidByID(id int) (string, bool)

func (*DataSet) GetPodServiceIDByLcuuid

func (t *DataSet) GetPodServiceIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetPodServiceInfoByID

func (t *DataSet) GetPodServiceInfoByID(id int) (*podServiceInfo, error)

func (*DataSet) GetPodServiceLcuuidByID

func (t *DataSet) GetPodServiceLcuuidByID(id int) (string, bool)

func (*DataSet) GetPodServiceNameByID

func (t *DataSet) GetPodServiceNameByID(id int) (string, error)

func (*DataSet) GetProcessDeviceTypeAndID

func (t *DataSet) GetProcessDeviceTypeAndID(containerID string, vtapID uint32) (deviceType, deviceID int)

func (*DataSet) GetProcessInfoByLcuuid

func (t *DataSet) GetProcessInfoByLcuuid(lcuuid string) (*processInfo, bool)

func (*DataSet) GetRDSInstanceIDByLcuuid

func (t *DataSet) GetRDSInstanceIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetRDSInstanceInfoByID

func (t *DataSet) GetRDSInstanceInfoByID(id int) (*rdsInstanceInfo, error)

func (*DataSet) GetRDSInstanceLcuuidByID

func (t *DataSet) GetRDSInstanceLcuuidByID(id int) (string, bool)

func (*DataSet) GetRDSInstanceNameByID

func (t *DataSet) GetRDSInstanceNameByID(id int) (string, error)

func (*DataSet) GetRedisInstanceIDByLcuuid

func (t *DataSet) GetRedisInstanceIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetRedisInstanceInfoByID

func (t *DataSet) GetRedisInstanceInfoByID(id int) (*redisInstanceInfo, error)

func (*DataSet) GetRedisInstanceLcuuidByID

func (t *DataSet) GetRedisInstanceLcuuidByID(id int) (string, bool)

func (*DataSet) GetRedisInstanceNameByID

func (t *DataSet) GetRedisInstanceNameByID(id int) (string, error)

func (*DataSet) GetRegionIDByLcuuid

func (t *DataSet) GetRegionIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetRegionLcuuidByID

func (t *DataSet) GetRegionLcuuidByID(id int) (string, bool)

func (*DataSet) GetSubnetIDByLcuuid

func (t *DataSet) GetSubnetIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetSubnetLcuuidByID

func (t *DataSet) GetSubnetLcuuidByID(id int) (string, bool)

func (*DataSet) GetVInterfaceIDByLANIPLcuuid

func (t *DataSet) GetVInterfaceIDByLANIPLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVInterfaceIDByLcuuid

func (t *DataSet) GetVInterfaceIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVInterfaceIDByWANIPLcuuid

func (t *DataSet) GetVInterfaceIDByWANIPLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVInterfaceLcuuidByID

func (t *DataSet) GetVInterfaceLcuuidByID(id int) (string, bool)

func (*DataSet) GetVInterfaceTypeByLcuuid

func (t *DataSet) GetVInterfaceTypeByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVMIDByLcuuid

func (t *DataSet) GetVMIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVMIDByPodNodeID

func (t *DataSet) GetVMIDByPodNodeID(podNodeID int) (int, bool)

func (*DataSet) GetVMInfoByID

func (t *DataSet) GetVMInfoByID(id int) (*vmInfo, error)

func (*DataSet) GetVMLcuuidByID

func (t *DataSet) GetVMLcuuidByID(id int) (string, bool)

func (*DataSet) GetVMNameByID

func (t *DataSet) GetVMNameByID(id int) (string, error)

func (*DataSet) GetVPCIDByLcuuid

func (t *DataSet) GetVPCIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVPCLcuuidByID

func (t *DataSet) GetVPCLcuuidByID(id int) (string, bool)

func (*DataSet) GetVRouterIDByLcuuid

func (t *DataSet) GetVRouterIDByLcuuid(lcuuid string) (int, bool)

func (*DataSet) GetVRouterInfoByID

func (t *DataSet) GetVRouterInfoByID(id int) (*vrouterInfo, error)

func (*DataSet) GetVRouterLcuuidByID

func (t *DataSet) GetVRouterLcuuidByID(id int) (string, bool)

func (*DataSet) GetVRouterNameByID

func (t *DataSet) GetVRouterNameByID(id int) (string, error)

func (*DataSet) GetWANIPByLcuuid

func (t *DataSet) GetWANIPByLcuuid(lcuuid string) (string, bool)

func (*DataSet) SetPublicNetworkID

func (t *DataSet) SetPublicNetworkID(id int)

func (*DataSet) UpdateDHCPPort

func (t *DataSet) UpdateDHCPPort(cloudItem *cloudmodel.DHCPPort)

func (*DataSet) UpdateHost

func (t *DataSet) UpdateHost(cloudItem *cloudmodel.Host)

func (*DataSet) UpdateLB

func (t *DataSet) UpdateLB(cloudItem *cloudmodel.LB)

func (*DataSet) UpdateNATGateway

func (t *DataSet) UpdateNATGateway(cloudItem *cloudmodel.NATGateway)

func (*DataSet) UpdateNetwork

func (t *DataSet) UpdateNetwork(cloudItem *cloudmodel.Network)

func (*DataSet) UpdatePod

func (t *DataSet) UpdatePod(cloudItem *cloudmodel.Pod)

func (*DataSet) UpdatePodNode

func (t *DataSet) UpdatePodNode(cloudItem *cloudmodel.PodNode)

func (*DataSet) UpdatePodService

func (t *DataSet) UpdatePodService(cloudItem *cloudmodel.PodService)

func (*DataSet) UpdateRDSInstance

func (t *DataSet) UpdateRDSInstance(cloudItem *cloudmodel.RDSInstance)

func (*DataSet) UpdateRedisInstance

func (t *DataSet) UpdateRedisInstance(cloudItem *cloudmodel.RedisInstance)

func (*DataSet) UpdateVInterface

func (t *DataSet) UpdateVInterface(cloudItem *cloudmodel.VInterface)

func (*DataSet) UpdateVM

func (t *DataSet) UpdateVM(cloudItem *cloudmodel.VM)

func (*DataSet) UpdateVRouter

func (t *DataSet) UpdateVRouter(cloudItem *cloudmodel.VRouter)

type EventDataSet

type EventDataSet struct {
	// contains filtered or unexported fields
}

func NewEventDataSet

func NewEventDataSet() EventDataSet

func (*EventDataSet) DeleteDeviceToIPNetworkMapIP

func (t *EventDataSet) DeleteDeviceToIPNetworkMapIP(deviceType, deviceID, networkID int, ip IPKey)

func (*EventDataSet) GetPodIPNetworkMapByID

func (t *EventDataSet) GetPodIPNetworkMapByID(id int) (map[IPKey]int, bool)

func (*EventDataSet) GetVMIPNetworkMapByID

func (t *EventDataSet) GetVMIPNetworkMapByID(id int) (map[IPKey]int, bool)

type IPKey

type IPKey struct {
	IP     string
	Mac    string
	Lcuuid string
}

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

Jump to

Keyboard shortcuts

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