Documentation ¶
Index ¶
- Constants
- type ProcessContext
- func (p *ProcessContext) DetectNewExposePort(port int)
- func (p *ProcessContext) DetectProcess() api.DetectedProcess
- func (p *ProcessContext) DetectType() api.ProcessDetectType
- func (p *ProcessContext) Entity() *api.ProcessEntity
- func (p *ProcessContext) ExeName() (string, error)
- func (p *ProcessContext) ExposeHosts() []string
- func (p *ProcessContext) ID() string
- func (p *ProcessContext) OriginalProcess() *process.Process
- func (p *ProcessContext) Pid() int32
- func (p *ProcessContext) PortIsExpose(port int) bool
- func (p *ProcessContext) ProfilingStat() *profiling.Info
- type ProcessManager
- func (m *ProcessManager) AddListener(listener api.ProcessListener)
- func (m *ProcessManager) DeleteListener(listener api.ProcessListener)
- func (m *ProcessManager) FindAllRegisteredProcesses() []api.ProcessInterface
- func (m *ProcessManager) FindProcessByID(processID string) api.ProcessInterface
- func (m *ProcessManager) FindProcessByPID(pid int32) []api.ProcessInterface
- func (m *ProcessManager) GetAllProcesses() []api.ProcessInterface
- func (m *ProcessManager) ShouldMonitor(pid int32) bool
- func (m *ProcessManager) Shutdown() error
- func (m *ProcessManager) Start()
- type ProcessManagerWithFinder
- type ProcessOperate
- type ProcessStorage
- func (s *ProcessStorage) AddListener(listener api.ProcessListener)
- func (s *ProcessStorage) AddNewProcessInFinder(finder api.ProcessDetectType, processes []api.DetectedProcess)
- func (s *ProcessStorage) DeleteListener(listener api.ProcessListener)
- func (s *ProcessStorage) FindAllRegisteredProcesses() []api.ProcessInterface
- func (s *ProcessStorage) FindProcessByID(processID string) api.ProcessInterface
- func (s *ProcessStorage) FindProcessByPID(pid int32) []api.ProcessInterface
- func (s *ProcessStorage) GetAllProcesses() []api.ProcessInterface
- func (s *ProcessStorage) StartReport()
- func (s *ProcessStorage) StopReport() error
- func (s *ProcessStorage) SyncAllProcessInFinder(finder api.ProcessDetectType, processes []api.DetectedProcess)
- type ProcessUploadStatus
Constants ¶
View Source
const ( ProcessOperateAdd = 1 ProcessOperateDelete = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessContext ¶
type ProcessContext struct {
// contains filtered or unexported fields
}
func (*ProcessContext) DetectNewExposePort ¶ added in v0.3.0
func (p *ProcessContext) DetectNewExposePort(port int)
func (*ProcessContext) DetectProcess ¶ added in v0.6.0
func (p *ProcessContext) DetectProcess() api.DetectedProcess
func (*ProcessContext) DetectType ¶
func (p *ProcessContext) DetectType() api.ProcessDetectType
func (*ProcessContext) Entity ¶
func (p *ProcessContext) Entity() *api.ProcessEntity
func (*ProcessContext) ExeName ¶ added in v0.3.0
func (p *ProcessContext) ExeName() (string, error)
func (*ProcessContext) ExposeHosts ¶ added in v0.6.0
func (p *ProcessContext) ExposeHosts() []string
func (*ProcessContext) ID ¶
func (p *ProcessContext) ID() string
func (*ProcessContext) OriginalProcess ¶ added in v0.5.0
func (p *ProcessContext) OriginalProcess() *process.Process
func (*ProcessContext) Pid ¶
func (p *ProcessContext) Pid() int32
func (*ProcessContext) PortIsExpose ¶ added in v0.3.0
func (p *ProcessContext) PortIsExpose(port int) bool
func (*ProcessContext) ProfilingStat ¶
func (p *ProcessContext) ProfilingStat() *profiling.Info
type ProcessManager ¶
type ProcessManager struct {
// contains filtered or unexported fields
}
ProcessManager means Manage all Process
func NewProcessManager ¶
func (*ProcessManager) AddListener ¶ added in v0.3.0
func (m *ProcessManager) AddListener(listener api.ProcessListener)
func (*ProcessManager) DeleteListener ¶ added in v0.3.0
func (m *ProcessManager) DeleteListener(listener api.ProcessListener)
func (*ProcessManager) FindAllRegisteredProcesses ¶ added in v0.5.0
func (m *ProcessManager) FindAllRegisteredProcesses() []api.ProcessInterface
func (*ProcessManager) FindProcessByID ¶
func (m *ProcessManager) FindProcessByID(processID string) api.ProcessInterface
func (*ProcessManager) FindProcessByPID ¶ added in v0.3.0
func (m *ProcessManager) FindProcessByPID(pid int32) []api.ProcessInterface
func (*ProcessManager) GetAllProcesses ¶ added in v0.4.0
func (m *ProcessManager) GetAllProcesses() []api.ProcessInterface
func (*ProcessManager) ShouldMonitor ¶ added in v0.6.0
func (m *ProcessManager) ShouldMonitor(pid int32) bool
func (*ProcessManager) Shutdown ¶
func (m *ProcessManager) Shutdown() error
func (*ProcessManager) Start ¶
func (m *ProcessManager) Start()
type ProcessManagerWithFinder ¶
type ProcessManagerWithFinder struct { *ProcessManager // contains filtered or unexported fields }
func (*ProcessManagerWithFinder) AddDetectedProcess ¶ added in v0.6.0
func (p *ProcessManagerWithFinder) AddDetectedProcess(processes []api.DetectedProcess)
func (*ProcessManagerWithFinder) GetModuleManager ¶
func (p *ProcessManagerWithFinder) GetModuleManager() *module.Manager
func (*ProcessManagerWithFinder) SyncAllProcessInFinder ¶
func (p *ProcessManagerWithFinder) SyncAllProcessInFinder(processes []api.DetectedProcess)
type ProcessOperate ¶ added in v0.3.0
type ProcessOperate int
type ProcessStorage ¶
type ProcessStorage struct {
// contains filtered or unexported fields
}
func NewProcessStorage ¶
func (*ProcessStorage) AddListener ¶ added in v0.3.0
func (s *ProcessStorage) AddListener(listener api.ProcessListener)
func (*ProcessStorage) AddNewProcessInFinder ¶ added in v0.7.0
func (s *ProcessStorage) AddNewProcessInFinder(finder api.ProcessDetectType, processes []api.DetectedProcess)
func (*ProcessStorage) DeleteListener ¶ added in v0.3.0
func (s *ProcessStorage) DeleteListener(listener api.ProcessListener)
func (*ProcessStorage) FindAllRegisteredProcesses ¶ added in v0.5.0
func (s *ProcessStorage) FindAllRegisteredProcesses() []api.ProcessInterface
func (*ProcessStorage) FindProcessByID ¶
func (s *ProcessStorage) FindProcessByID(processID string) api.ProcessInterface
func (*ProcessStorage) FindProcessByPID ¶ added in v0.3.0
func (s *ProcessStorage) FindProcessByPID(pid int32) []api.ProcessInterface
func (*ProcessStorage) GetAllProcesses ¶ added in v0.4.0
func (s *ProcessStorage) GetAllProcesses() []api.ProcessInterface
func (*ProcessStorage) StartReport ¶
func (s *ProcessStorage) StartReport()
func (*ProcessStorage) StopReport ¶
func (s *ProcessStorage) StopReport() error
func (*ProcessStorage) SyncAllProcessInFinder ¶
func (s *ProcessStorage) SyncAllProcessInFinder(finder api.ProcessDetectType, processes []api.DetectedProcess)
type ProcessUploadStatus ¶
type ProcessUploadStatus int8
const ( // NotReport is detected the process, but not report to the backend NotReport ProcessUploadStatus // ReportSuccess mean backend has informed, so it could have id ReportSuccess // Ignore by the backend Ignore )
Click to show internal directories.
Click to hide internal directories.