parser

package
v0.0.0-...-e999173 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerProxy

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

DockerProxy keeps track of every docker-proxy instance and filters network traffic going through them

func NewDockerProxy

func NewDockerProxy() *DockerProxy

NewDockerProxy instantiates a new filter loaded with docker-proxy instance information

func (*DockerProxy) Extract

func (d *DockerProxy) Extract(processes map[int32]*procutil.Process)

func (*DockerProxy) Filter

func (d *DockerProxy) Filter(payload *model.Connections)

Filter all connections that have a docker-proxy at one end

type ServiceExtractor

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

ServiceExtractor infers a service tag by extracting it from a process

func NewServiceExtractor

func NewServiceExtractor(enabled, useWindowsServiceName, useImprovedAlgorithm bool) *ServiceExtractor

NewServiceExtractor instantiates a new service discovery extractor

func (*ServiceExtractor) Extract

func (d *ServiceExtractor) Extract(processes map[int32]*procutil.Process)

func (*ServiceExtractor) GetServiceContext

func (d *ServiceExtractor) GetServiceContext(pid int32) []string

type WindowsServiceInfo

type WindowsServiceInfo struct {
	ServiceName []string
	DisplayName []string
}

WindowsServiceInfo represents service data that is parsed from the SCM. On non-Windows platforms these fields should always be empty. On Windows, multiple services can be binpacked into a single `svchost.exe`, which is why `ServiceName` and `DisplayName` are slices.

Directories

Path Synopsis
Package javaparser contains functions to autodetect service name for java applications
Package javaparser contains functions to autodetect service name for java applications
Package nodejsparser wraps functions to guess service name for node applications
Package nodejsparser wraps functions to guess service name for node applications

Jump to

Keyboard shortcuts

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