finders

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

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 NewProcessManager(ctx context.Context, moduleManager *module.Manager,
	reportInterval time.Duration, propertiesReportFactor int, configs ...base.FinderBaseConfig) (*ProcessManager, error)

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 NewProcessStorage(ctx context.Context, moduleManager *module.Manager, reportInterval time.Duration,
	propertiesReportFactor int, finderList []base.ProcessFinder, listenerRecheckInterval time.Duration) (*ProcessStorage, error)

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
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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