Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertStrToIntList(convertStr string) ([]int, error)
- func DefaultFieldNone(filed string) bool
- func FilterSlice(s []string, filter func(x string) bool) []string
- func GetKey(vtap *models.VTap) string
- func JudgeField(field string) bool
- type AggregateMap
- type CacheKC
- type CacheReq
- type EntryData
- type GlobalEntry
- type GroupData
- type IDToGPID
- type KubernetesCluster
- type KvmVTapCacheMap
- type PlatformDataType
- type ProcessInfo
- func (p *ProcessInfo) DeleteVTapExpiredData(dbVTapIDs mapset.Set)
- func (p *ProcessInfo) GetGPIDResponseByReq(req *trident.GPIDSyncRequest) *trident.GPIDSyncResponse
- func (p *ProcessInfo) GetGPIDResponseByVtapID(vtapID uint32) *trident.GPIDSyncResponse
- func (p *ProcessInfo) GetGPIDShareReqs() *trident.ShareGPIDSyncRequests
- func (p *ProcessInfo) GetGlobalEntries() ([]*trident.GlobalGPIDEntry, []*trident.GlobalLoopbackGPIDEntry)
- func (p *ProcessInfo) GetRealGlobalData() []*trident.RealClientToRealServer
- func (p *ProcessInfo) GetVTapGPIDReq(vtapID uint32) (*trident.GPIDSyncRequest, uint32)
- func (p *ProcessInfo) TimedGenerateGPIDInfo()
- func (p *ProcessInfo) UpdateGPIDReqFromShare(shareReq *trident.ShareGPIDSyncRequests)
- func (p *ProcessInfo) UpdateVTapGPIDReq(req *trident.GPIDSyncRequest)
- type RealClientToRealServer
- type VTapCache
- func (c *VTapCache) EnabledApplicationMonitoring() bool
- func (c *VTapCache) EnabledNetworkMonitoring() bool
- func (c *VTapCache) EnabledTrafficDistribution() bool
- func (c *VTapCache) GetAZ() string
- func (c *VTapCache) GetArch() string
- func (c *VTapCache) GetBootTime() int
- func (c *VTapCache) GetCPUNum() int
- func (c *VTapCache) GetCachedAt() time.Time
- func (c *VTapCache) GetConfigSyncInterval() int
- func (c *VTapCache) GetConfigTapMode() int
- func (c *VTapCache) GetControllerIP() string
- func (c *VTapCache) GetCtrlIP() string
- func (c *VTapCache) GetCtrlMac() string
- func (c *VTapCache) GetCurControllerIP() string
- func (c *VTapCache) GetCurTSDBIP() string
- func (c *VTapCache) GetExceptions() int64
- func (c *VTapCache) GetExpectedRevision() string
- func (c *VTapCache) GetFunctions() mapset.Set
- func (c *VTapCache) GetKernelVersion() string
- func (c *VTapCache) GetKey() string
- func (c *VTapCache) GetLaunchServer() string
- func (c *VTapCache) GetLaunchServerID() int
- func (c *VTapCache) GetLcuuid() string
- func (c *VTapCache) GetMemorySize() int64
- func (c *VTapCache) GetOs() string
- func (c *VTapCache) GetPodClusterID() int
- func (c *VTapCache) GetProcessName() string
- func (c *VTapCache) GetPushVersionGroups() uint64
- func (c *VTapCache) GetPushVersionPlatformData() uint64
- func (c *VTapCache) GetPushVersionPolicy() uint64
- func (c *VTapCache) GetRegion() string
- func (c *VTapCache) GetRegionID() int
- func (c *VTapCache) GetRevision() string
- func (c *VTapCache) GetSimplePlatformDataStr() []byte
- func (c *VTapCache) GetSimplePlatformDataVersion() uint64
- func (c *VTapCache) GetSyncedControllerAt() *time.Time
- func (c *VTapCache) GetSyncedTSDBAt() *time.Time
- func (c *VTapCache) GetTSDBIP() string
- func (c *VTapCache) GetTapMode() int
- func (c *VTapCache) GetUpgradePackage() string
- func (c *VTapCache) GetVPCID() int
- func (c *VTapCache) GetVTapConfig() *VTapConfig
- func (c *VTapCache) GetVTapEnabled() int
- func (c *VTapCache) GetVTapGroupLcuuid() string
- func (c *VTapCache) GetVTapHost() string
- func (c *VTapCache) GetVTapID() uint32
- func (c *VTapCache) GetVTapLocalSegments() []*trident.Segment
- func (c *VTapCache) GetVTapPlatformData() *metadata.PlatformData
- func (c *VTapCache) GetVTapRemoteSegments() []*trident.Segment
- func (c *VTapCache) GetVTapType() int
- func (c *VTapCache) ResetControllerSyncFlag()
- func (c *VTapCache) ResetTSDBSyncFlag()
- func (c *VTapCache) SetControllerSyncFlag()
- func (c *VTapCache) SetTSDBSyncFlag()
- func (c *VTapCache) UpdateBootTime(bootTime uint32)
- func (c *VTapCache) UpdateCtrlMacFromGrpc(ctrlMac string)
- func (c *VTapCache) UpdateCurControllerIP(IP string)
- func (c *VTapCache) UpdateCurTSDBIP(IP string)
- func (c *VTapCache) UpdateExceptions(exceptions int64)
- func (c *VTapCache) UpdateLaunchServer(launcherServer string)
- func (c *VTapCache) UpdateLaunchServerID(id int)
- func (c *VTapCache) UpdatePushVersionGroups(version uint64)
- func (c *VTapCache) UpdatePushVersionPlatformData(version uint64)
- func (c *VTapCache) UpdatePushVersionPolicy(version uint64)
- func (c *VTapCache) UpdateRevision(revision string)
- func (c *VTapCache) UpdateSyncedControllerAt(syncTime time.Time)
- func (c *VTapCache) UpdateSyncedTSDB(syncTime time.Time, IP string) bool
- func (c *VTapCache) UpdateSyncedTSDBAt(syncTime time.Time)
- func (c *VTapCache) UpdateSystemInfoFromGrpc(cpuNum int, memorySize int64, arch, os, kernelVersion, processName string)
- func (c *VTapCache) UpdateUpgradeInfo(expectedRevision string, upgradePackage string)
- type VTapCacheMap
- type VTapConfig
- type VTapIDCacheMap
- type VTapIDToReq
- type VTapInfo
- func (v *VTapInfo) AddVTapCache(vtap *models.VTap)
- func (v *VTapInfo) DeleteVTapCache(key string)
- func (v *VTapInfo) GenerateRemoteSegments() []*trident.Segment
- func (v *VTapInfo) GenerateVTapCache()
- func (v *VTapInfo) GenerateVTapLocalSegments(c *VTapCache) []*trident.Segment
- func (v *VTapInfo) GetConfigTSDBIP() string
- func (v *VTapInfo) GetDefaultMaxEscapeSeconds() int
- func (v *VTapInfo) GetDefaultMaxMemory() int
- func (v *VTapInfo) GetGroupData() []byte
- func (v *VTapInfo) GetGroupDataVersion() uint64
- func (v *VTapInfo) GetKubernetesClusterID(clusterID string, value string, force bool) string
- func (v *VTapInfo) GetKvmVTapCache(key string) *VTapCache
- func (v *VTapInfo) GetProcessInfo() *ProcessInfo
- func (v *VTapInfo) GetRegionIDByLcuuid(lcuuid string) int
- func (v *VTapInfo) GetRemoteSegment(c *VTapCache) []*trident.Segment
- func (v *VTapInfo) GetSelfUpdateUrl() string
- func (v *VTapInfo) GetSkipInterface(c *VTapCache) []*trident.SkipInterface
- func (v *VTapInfo) GetTapTypes() []*trident.TapType
- func (v *VTapInfo) GetTridentTypeForUnkonwVTap() uint16
- func (v *VTapInfo) GetVTapCache(key string) *VTapCache
- func (v *VTapInfo) GetVTapCacheIsReady() bool
- func (v *VTapInfo) GetVTapConfigFromShortID(shortID string) *VTapConfig
- func (v *VTapInfo) GetVTapIPs() []*trident.VtapIp
- func (v *VTapInfo) GetVTapLocalConfig(vtapGroupLcuuid string) string
- func (v *VTapInfo) GetVTapLocalConfigByShortID(shortID string) string
- func (v *VTapInfo) GetVTapPolicyData(vtapID int, functions mapset.Set) []byte
- func (v *VTapInfo) GetVTapPolicyVersion(vtapID int, functions mapset.Set) uint64
- func (v *VTapInfo) InitData()
- func (v *VTapInfo) IsCtrlMacInTapPorts(ctrlIP string, ctrlMac string) bool
- func (v *VTapInfo) IsTheSameCluster(clusterID string) bool
- func (v *VTapInfo) PutVTapCacheRefresh()
- func (v *VTapInfo) Register(tapMode int, ctrlIP string, ctrlMac string, hostIPs []string, host string, ...)
- func (v *VTapInfo) StartRegister()
- func (v *VTapInfo) TimedRefreshVTapCache()
- func (v *VTapInfo) UpdateTSDBVTapInfo(cVTaps []*trident.CommunicationVtap, tsdbIP string)
- func (v *VTapInfo) UpdateVTapCache(key string, vtap *models.VTap)
- type VTapLKData
- type VTapLKResult
- type VTapPlatformData
- type VTapPolicyData
- type VTapRegister
Constants ¶
View Source
const ( TCPServer = iota TCPClient UDPServer UDPClient MAX_SERVICE_TYPE )
View Source
const ( NORMAL_IP = iota // normal_ip (protocol + role)->(epc_id + port + ip)->(vtap_id + pid) LOOP_IP // 127.0.0.1/8 loopback (protocol + role)->(vtap_id + port + netnsIndex)->(vtap_id + pid) MAX_IP_TYPE )
Variables ¶
View Source
var ALL_DOMAIMS = []string{"0"}
Functions ¶
func ConvertStrToIntList ¶
func DefaultFieldNone ¶
func JudgeField ¶
Types ¶
type AggregateMap ¶
type AggregateMap map[uint64]*GlobalEntry
type CacheReq ¶
type CacheReq struct {
// contains filtered or unexported fields
}
func NewCacheReq ¶
func NewCacheReq(req *trident.GPIDSyncRequest) *CacheReq
type EntryData ¶
type EntryData [MAX_SERVICE_TYPE][MAX_IP_TYPE]AggregateMap
func NewEntryData ¶
func NewEntryData() EntryData
type GlobalEntry ¶
type GlobalEntry struct {
// contains filtered or unexported fields
}
func NewGlobalEntry ¶
func NewGlobalEntry(vtapID uint32, pid uint32) *GlobalEntry
type KubernetesCluster ¶
func (*KubernetesCluster) DeleteCache ¶
func (k *KubernetesCluster) DeleteCache(clusterID string)
type KvmVTapCacheMap ¶
func NewKvmVTapCacheMap ¶
func NewKvmVTapCacheMap() *KvmVTapCacheMap
func (*KvmVTapCacheMap) Add ¶
func (m *KvmVTapCacheMap) Add(vTapCache *VTapCache)
func (*KvmVTapCacheMap) Delete ¶
func (m *KvmVTapCacheMap) Delete(key string)
func (*KvmVTapCacheMap) Get ¶
func (m *KvmVTapCacheMap) Get(key string) *VTapCache
type PlatformDataType ¶
func (*PlatformDataType) String ¶
func (t *PlatformDataType) String() string
type ProcessInfo ¶
type ProcessInfo struct {
// contains filtered or unexported fields
}
func NewProcessInfo ¶
func NewProcessInfo(db *gorm.DB, cfg *config.Config) *ProcessInfo
func (*ProcessInfo) DeleteVTapExpiredData ¶
func (p *ProcessInfo) DeleteVTapExpiredData(dbVTapIDs mapset.Set)
func (*ProcessInfo) GetGPIDResponseByReq ¶
func (p *ProcessInfo) GetGPIDResponseByReq(req *trident.GPIDSyncRequest) *trident.GPIDSyncResponse
func (*ProcessInfo) GetGPIDResponseByVtapID ¶
func (p *ProcessInfo) GetGPIDResponseByVtapID(vtapID uint32) *trident.GPIDSyncResponse
func (*ProcessInfo) GetGPIDShareReqs ¶
func (p *ProcessInfo) GetGPIDShareReqs() *trident.ShareGPIDSyncRequests
func (*ProcessInfo) GetGlobalEntries ¶
func (p *ProcessInfo) GetGlobalEntries() ([]*trident.GlobalGPIDEntry, []*trident.GlobalLoopbackGPIDEntry)
func (*ProcessInfo) GetRealGlobalData ¶
func (p *ProcessInfo) GetRealGlobalData() []*trident.RealClientToRealServer
func (*ProcessInfo) GetVTapGPIDReq ¶
func (p *ProcessInfo) GetVTapGPIDReq(vtapID uint32) (*trident.GPIDSyncRequest, uint32)
func (*ProcessInfo) TimedGenerateGPIDInfo ¶
func (p *ProcessInfo) TimedGenerateGPIDInfo()
func (*ProcessInfo) UpdateGPIDReqFromShare ¶
func (p *ProcessInfo) UpdateGPIDReqFromShare(shareReq *trident.ShareGPIDSyncRequests)
func (*ProcessInfo) UpdateVTapGPIDReq ¶
func (p *ProcessInfo) UpdateVTapGPIDReq(req *trident.GPIDSyncRequest)
type RealClientToRealServer ¶
type VTapCache ¶
type VTapCache struct { // vtap vtap id VPCID int // vtap platform data PlatformData *atomic.Value //*PlatformData // contains filtered or unexported fields }
func NewVTapCache ¶
func (*VTapCache) EnabledApplicationMonitoring ¶
func (*VTapCache) EnabledNetworkMonitoring ¶
func (*VTapCache) EnabledTrafficDistribution ¶
func (*VTapCache) GetBootTime ¶
func (*VTapCache) GetCachedAt ¶
func (*VTapCache) GetConfigSyncInterval ¶
func (*VTapCache) GetConfigTapMode ¶
func (*VTapCache) GetControllerIP ¶
func (*VTapCache) GetCtrlMac ¶
func (*VTapCache) GetCurControllerIP ¶
func (*VTapCache) GetCurTSDBIP ¶
func (*VTapCache) GetExceptions ¶
func (*VTapCache) GetExpectedRevision ¶
func (*VTapCache) GetFunctions ¶
func (*VTapCache) GetKernelVersion ¶
func (*VTapCache) GetLaunchServer ¶
func (*VTapCache) GetLaunchServerID ¶
func (*VTapCache) GetMemorySize ¶
func (*VTapCache) GetPodClusterID ¶
func (*VTapCache) GetProcessName ¶
func (*VTapCache) GetPushVersionGroups ¶
func (*VTapCache) GetPushVersionPlatformData ¶
func (*VTapCache) GetPushVersionPolicy ¶
func (*VTapCache) GetRegionID ¶
func (*VTapCache) GetRevision ¶
func (*VTapCache) GetSimplePlatformDataStr ¶
func (*VTapCache) GetSimplePlatformDataVersion ¶
func (*VTapCache) GetSyncedControllerAt ¶
func (*VTapCache) GetSyncedTSDBAt ¶
func (*VTapCache) GetTapMode ¶
func (*VTapCache) GetUpgradePackage ¶
func (*VTapCache) GetVTapConfig ¶
func (c *VTapCache) GetVTapConfig() *VTapConfig
func (*VTapCache) GetVTapEnabled ¶
func (*VTapCache) GetVTapGroupLcuuid ¶
func (*VTapCache) GetVTapHost ¶
func (*VTapCache) GetVTapLocalSegments ¶
func (*VTapCache) GetVTapPlatformData ¶
func (c *VTapCache) GetVTapPlatformData() *metadata.PlatformData
func (*VTapCache) GetVTapRemoteSegments ¶
func (*VTapCache) GetVTapType ¶
func (*VTapCache) ResetControllerSyncFlag ¶
func (c *VTapCache) ResetControllerSyncFlag()
func (*VTapCache) ResetTSDBSyncFlag ¶
func (c *VTapCache) ResetTSDBSyncFlag()
func (*VTapCache) SetControllerSyncFlag ¶
func (c *VTapCache) SetControllerSyncFlag()
func (*VTapCache) SetTSDBSyncFlag ¶
func (c *VTapCache) SetTSDBSyncFlag()
func (*VTapCache) UpdateBootTime ¶
func (*VTapCache) UpdateCtrlMacFromGrpc ¶
func (*VTapCache) UpdateCurControllerIP ¶
func (*VTapCache) UpdateCurTSDBIP ¶
func (*VTapCache) UpdateExceptions ¶
只更新采集器返回的异常,控制器异常不用更新,由控制器处理其异常
func (*VTapCache) UpdateLaunchServer ¶
func (*VTapCache) UpdateLaunchServerID ¶
func (*VTapCache) UpdatePushVersionGroups ¶
func (*VTapCache) UpdatePushVersionPlatformData ¶
func (*VTapCache) UpdatePushVersionPolicy ¶
func (*VTapCache) UpdateRevision ¶
func (*VTapCache) UpdateSyncedControllerAt ¶
func (*VTapCache) UpdateSyncedTSDB ¶
func (*VTapCache) UpdateSyncedTSDBAt ¶
func (*VTapCache) UpdateSystemInfoFromGrpc ¶
func (*VTapCache) UpdateUpgradeInfo ¶
type VTapCacheMap ¶
func NewVTapCacheMap ¶
func NewVTapCacheMap() *VTapCacheMap
func (*VTapCacheMap) Add ¶
func (m *VTapCacheMap) Add(vTapCache *VTapCache)
func (*VTapCacheMap) Delete ¶
func (m *VTapCacheMap) Delete(key string)
func (*VTapCacheMap) Get ¶
func (m *VTapCacheMap) Get(key string) *VTapCache
func (*VTapCacheMap) GetCount ¶
func (m *VTapCacheMap) GetCount() int
func (*VTapCacheMap) GetKeySet ¶
func (m *VTapCacheMap) GetKeySet() mapset.Set
func (*VTapCacheMap) List ¶
func (m *VTapCacheMap) List() []string
type VTapConfig ¶
type VTapConfig struct { models.RVTapGroupConfiguration ConvertedL4LogTapTypes []uint32 ConvertedL7LogStoreTapTypes []uint32 ConvertedDecapType []uint32 ConvertedDomains []string }
func NewVTapConfig ¶
func NewVTapConfig(config *models.RVTapGroupConfiguration) *VTapConfig
type VTapIDCacheMap ¶
func NewVTapIDCacheMap ¶
func NewVTapIDCacheMap() *VTapIDCacheMap
func (*VTapIDCacheMap) Add ¶
func (m *VTapIDCacheMap) Add(vTapCache *VTapCache)
func (*VTapIDCacheMap) Delete ¶
func (m *VTapIDCacheMap) Delete(key int)
func (*VTapIDCacheMap) Get ¶
func (m *VTapIDCacheMap) Get(key int) *VTapCache
type VTapIDToReq ¶
func NewVTapIDToReq ¶
func NewVTapIDToReq() *VTapIDToReq
type VTapInfo ¶
type VTapInfo struct {
// contains filtered or unexported fields
}
func NewVTapInfo ¶
func (*VTapInfo) AddVTapCache ¶
func (*VTapInfo) DeleteVTapCache ¶
func (*VTapInfo) GenerateRemoteSegments ¶
func (*VTapInfo) GenerateVTapCache ¶
func (v *VTapInfo) GenerateVTapCache()
func (*VTapInfo) GenerateVTapLocalSegments ¶
func (*VTapInfo) GetConfigTSDBIP ¶
func (*VTapInfo) GetDefaultMaxEscapeSeconds ¶
func (*VTapInfo) GetDefaultMaxMemory ¶
func (*VTapInfo) GetGroupData ¶
func (*VTapInfo) GetGroupDataVersion ¶
func (*VTapInfo) GetKubernetesClusterID ¶
func (*VTapInfo) GetKvmVTapCache ¶
func (*VTapInfo) GetProcessInfo ¶
func (v *VTapInfo) GetProcessInfo() *ProcessInfo
func (*VTapInfo) GetRegionIDByLcuuid ¶
func (*VTapInfo) GetRemoteSegment ¶
func (*VTapInfo) GetSelfUpdateUrl ¶
func (*VTapInfo) GetSkipInterface ¶
func (v *VTapInfo) GetSkipInterface(c *VTapCache) []*trident.SkipInterface
func (*VTapInfo) GetTapTypes ¶
func (*VTapInfo) GetTridentTypeForUnkonwVTap ¶
func (*VTapInfo) GetVTapCache ¶
func (*VTapInfo) GetVTapCacheIsReady ¶
func (*VTapInfo) GetVTapConfigFromShortID ¶
func (v *VTapInfo) GetVTapConfigFromShortID(shortID string) *VTapConfig
func (*VTapInfo) GetVTapIPs ¶
func (*VTapInfo) GetVTapLocalConfig ¶
func (*VTapInfo) GetVTapLocalConfigByShortID ¶
func (*VTapInfo) GetVTapPolicyData ¶
func (*VTapInfo) GetVTapPolicyVersion ¶
func (*VTapInfo) IsCtrlMacInTapPorts ¶
func (*VTapInfo) IsTheSameCluster ¶
func (*VTapInfo) PutVTapCacheRefresh ¶
func (v *VTapInfo) PutVTapCacheRefresh()
func (*VTapInfo) StartRegister ¶
func (v *VTapInfo) StartRegister()
func (*VTapInfo) TimedRefreshVTapCache ¶
func (v *VTapInfo) TimedRefreshVTapCache()
func (*VTapInfo) UpdateTSDBVTapInfo ¶
func (v *VTapInfo) UpdateTSDBVTapInfo(cVTaps []*trident.CommunicationVtap, tsdbIP string)
type VTapLKData ¶
type VTapLKData struct {
// contains filtered or unexported fields
}
func NewVTapLkData ¶
func (*VTapLKData) LookUpLocalVTapByIP ¶
func (l *VTapLKData) LookUpLocalVTapByIP(db *gorm.DB) *VTapLKResult
func (*VTapLKData) LookUpMirrorVTapByIP ¶
func (l *VTapLKData) LookUpMirrorVTapByIP(db *gorm.DB) *VTapLKResult
func (*VTapLKData) LookUpVTapByHost ¶
func (l *VTapLKData) LookUpVTapByHost(db *gorm.DB) *VTapLKResult
func (*VTapLKData) LookUpVTapByPodNode ¶
func (l *VTapLKData) LookUpVTapByPodNode(db *gorm.DB) *VTapLKResult
type VTapLKResult ¶
type VTapPlatformData ¶
type VTapPlatformData struct {
// contains filtered or unexported fields
}
func (*VTapPlatformData) String ¶
func (v *VTapPlatformData) String() string
type VTapPolicyData ¶
type VTapPolicyData struct {
// contains filtered or unexported fields
}
type VTapRegister ¶
type VTapRegister struct { VTapLKData // contains filtered or unexported fields }
func (*VTapRegister) String ¶
func (r *VTapRegister) String() string
Click to show internal directories.
Click to hide internal directories.