Documentation
¶
Index ¶
- Constants
- type Config
- type K8sOperator
- type Module
- func (m *Module) AddListener(listener api.ProcessListener)
- func (m *Module) Config() module.ConfigInterface
- func (m *Module) DeleteListener(listener api.ProcessListener)
- func (m *Module) FindAllRegisteredProcesses() []api.ProcessInterface
- func (m *Module) FindProcessByID(processID string) api.ProcessInterface
- func (m *Module) FindProcessByPID(pid int32) []api.ProcessInterface
- func (m *Module) GetAllProcesses() []api.ProcessInterface
- func (m *Module) Name() string
- func (m *Module) NodeName() string
- func (m *Module) NotifyStartSuccess()
- func (m *Module) RequiredModules() []string
- func (m *Module) ShouldMonitor(pid int32) bool
- func (m *Module) Shutdown(ctx context.Context, mgr *module.Manager) error
- func (m *Module) Start(ctx context.Context, mgr *module.Manager) error
- type Operator
Constants ¶
View Source
const ModuleName = "process_discovery"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type K8sOperator ¶ added in v0.6.0
type K8sOperator interface {
// NodeName get the node name
NodeName() string
}
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) AddListener ¶ added in v0.3.0
func (m *Module) AddListener(listener api.ProcessListener)
func (*Module) Config ¶
func (m *Module) Config() module.ConfigInterface
func (*Module) DeleteListener ¶ added in v0.3.0
func (m *Module) DeleteListener(listener api.ProcessListener)
func (*Module) FindAllRegisteredProcesses ¶ added in v0.5.0
func (m *Module) FindAllRegisteredProcesses() []api.ProcessInterface
func (*Module) FindProcessByID ¶
func (m *Module) FindProcessByID(processID string) api.ProcessInterface
func (*Module) FindProcessByPID ¶ added in v0.3.0
func (m *Module) FindProcessByPID(pid int32) []api.ProcessInterface
func (*Module) GetAllProcesses ¶ added in v0.4.0
func (m *Module) GetAllProcesses() []api.ProcessInterface
func (*Module) NotifyStartSuccess ¶
func (m *Module) NotifyStartSuccess()
func (*Module) RequiredModules ¶
func (*Module) ShouldMonitor ¶ added in v0.6.0
type Operator ¶
type Operator interface {
// FindProcessById the processID is received from the backend, if not found then return nil
FindProcessByID(processID string) api.ProcessInterface
// FindProcessByPID get all processes with difference entity through process PID
FindProcessByPID(pid int32) []api.ProcessInterface
// FindAllRegisteredProcesses find all registered processes
FindAllRegisteredProcesses() []api.ProcessInterface
// AddListener add new process listener
AddListener(listener api.ProcessListener)
// DeleteListener delete the process listener
DeleteListener(listener api.ProcessListener)
// ShouldMonitor check the process should be monitored
ShouldMonitor(pid int32) bool
}
Click to show internal directories.
Click to hide internal directories.