finders

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessContext

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

func (*ProcessContext) DetectType

func (p *ProcessContext) DetectType() api.ProcessDetectType

func (*ProcessContext) Entity

func (p *ProcessContext) Entity() *api.ProcessEntity

func (*ProcessContext) ID

func (p *ProcessContext) ID() string

func (*ProcessContext) Pid

func (p *ProcessContext) Pid() int32

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) FindProcessByID

func (m *ProcessManager) FindProcessByID(processID string) api.ProcessInterface

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) GetModuleManager

func (p *ProcessManagerWithFinder) GetModuleManager() *module.Manager

func (*ProcessManagerWithFinder) SyncAllProcessInFinder

func (p *ProcessManagerWithFinder) SyncAllProcessInFinder(processes []base.DetectedProcess)

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) (*ProcessStorage, error)

func (*ProcessStorage) FindProcessByID

func (s *ProcessStorage) FindProcessByID(processID string) 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 []base.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