Documentation
¶
Index ¶
- type AgentFinder
- type AgentMetadata
- type Config
- type Mode
- type Process
- func (p *Process) BuildIdentity() string
- func (p *Process) DetectType() api.ProcessDetectType
- func (p *Process) Entity() *api.ProcessEntity
- func (p *Process) ExposePorts() []int
- func (p *Process) OriginalProcess() *process.Process
- func (p *Process) Pid() int32
- func (p *Process) ProfilingStat() *profiling.Info
- type ProcessFinder
- func (p *ProcessFinder) BuildEBPFProcess(ctx *base.BuildEBPFProcessContext, ps base.DetectedProcess) *v3.EBPFProcessProperties
- func (p *ProcessFinder) BuildNecessaryProperties(ps base.DetectedProcess) []*commonv3.KeyStringValuePair
- func (p *ProcessFinder) DetectType() api.ProcessDetectType
- func (p *ProcessFinder) Init(ctx context.Context, conf base.FinderBaseConfig, manager base.ProcessManager) error
- func (p *ProcessFinder) ParseProcessID(ps base.DetectedProcess, downstream *v3.EBPFProcessDownstream) string
- func (p *ProcessFinder) Start()
- func (p *ProcessFinder) Stop() error
- func (p *ProcessFinder) ValidateProcessIsSame(p1, p2 base.DetectedProcess) bool
- type RegexFinder
- type TemplateContext
- type TemplateFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentFinder ¶
type AgentMetadata ¶
type AgentMetadata struct {
Layer string `mapstructure:"layer"`
ServiceName string `mapstructure:"service_name"`
InstanceName string `mapstructure:"instance_name"`
ProcessName string `mapstructure:"process_name"`
Properties string `mapstructure:"properties"`
Labels string `mapstructure:"labels"`
Language string `mapstructure:"language"`
}
type Config ¶
type Config struct {
base.FinderBaseConfig
// Scan Period
Period string `mapstructure:"period"`
ScanMode Mode `mapstructure:"mode"`
// Agent process finder
Agent *AgentFinder `mapstructure:"agent"`
// Regex process finders
RegexFinders []*RegexFinder `mapstructure:"regex"`
}
func (*Config) ActiveFinder ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcessByAgent ¶
func NewProcessByRegex ¶
func NewProcessByRegex(p *process.Process, cmdline string, config *RegexFinder) *Process
func (*Process) DetectType ¶
func (p *Process) DetectType() api.ProcessDetectType
func (*Process) Entity ¶
func (p *Process) Entity() *api.ProcessEntity
func (*Process) ExposePorts ¶ added in v0.3.0
func (*Process) OriginalProcess ¶
func (*Process) ProfilingStat ¶
type ProcessFinder ¶
type ProcessFinder struct {
// contains filtered or unexported fields
}
func (*ProcessFinder) BuildEBPFProcess ¶
func (p *ProcessFinder) BuildEBPFProcess(ctx *base.BuildEBPFProcessContext, ps base.DetectedProcess) *v3.EBPFProcessProperties
func (*ProcessFinder) BuildNecessaryProperties ¶
func (p *ProcessFinder) BuildNecessaryProperties(ps base.DetectedProcess) []*commonv3.KeyStringValuePair
func (*ProcessFinder) DetectType ¶
func (p *ProcessFinder) DetectType() api.ProcessDetectType
func (*ProcessFinder) Init ¶
func (p *ProcessFinder) Init(ctx context.Context, conf base.FinderBaseConfig, manager base.ProcessManager) error
func (*ProcessFinder) ParseProcessID ¶
func (p *ProcessFinder) ParseProcessID(ps base.DetectedProcess, downstream *v3.EBPFProcessDownstream) string
func (*ProcessFinder) Start ¶
func (p *ProcessFinder) Start()
func (*ProcessFinder) Stop ¶
func (p *ProcessFinder) Stop() error
func (*ProcessFinder) ValidateProcessIsSame ¶
func (p *ProcessFinder) ValidateProcessIsSame(p1, p2 base.DetectedProcess) bool
type RegexFinder ¶
type RegexFinder struct {
// Use command line to match the processes
MatchCommandRegex string `mapstructure:"match_cmd"`
// entity
Layer string `mapstructure:"layer"` // process layer
ServiceName string `mapstructure:"service_name"` // process entity service name
InstanceName string `mapstructure:"instance_name"` // process entity service instance name
ProcessName string `mapstructure:"process_name"` // process entity process name
LabelsStr string `mapstructure:"labels"` // process labels for aggregate similar processes
ParsedLabels []string
// contains filtered or unexported fields
}
type TemplateContext ¶
type TemplateContext struct {
Rover *base.TemplateRover
Process *base.TemplateProcess
Finder *TemplateFinder
}
type TemplateFinder ¶
type TemplateFinder struct {
// contains filtered or unexported fields
}
func (*TemplateFinder) Layer ¶
func (t *TemplateFinder) Layer() string
func (*TemplateFinder) RegexMatchGroup ¶
func (t *TemplateFinder) RegexMatchGroup(inx int) (string, error)
Click to show internal directories.
Click to hide internal directories.