module

package
v0.0.0-...-bfe00b6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package module implements a system-probe Module interface for the discovery component.

Package module is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTargetEnvs

func GetTargetEnvs(proc *process.Process) (envs.Variables, error)

GetTargetEnvs reads the environment variables of interest from the /proc/<pid>/environ file.

func NewDiscoveryModule

func NewDiscoveryModule(_ *sysconfigtypes.Config, _ module.FactoryDependencies) (module.Module, error)

NewDiscoveryModule creates a new discovery system probe module.

Types

type EnvReader

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

EnvReader reads the environment variables from /proc/<pid>/environ file.

type MocktimeProvider

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

MocktimeProvider is a mock of timeProvider interface.

func NewMocktimeProvider

func NewMocktimeProvider(ctrl *gomock.Controller) *MocktimeProvider

NewMocktimeProvider creates a new mock instance.

func (*MocktimeProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MocktimeProvider) Now

func (m *MocktimeProvider) Now() time.Time

Now mocks base method.

type MocktimeProviderMockRecorder

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

MocktimeProviderMockRecorder is the mock recorder for MocktimeProvider.

func (*MocktimeProviderMockRecorder) Now

Now indicates an expected call of Now.

Directories

Path Synopsis
Package splite provides shared CLI argument definitions for the system-probe-lite binary.
Package splite provides shared CLI argument definitions for the system-probe-lite binary.
testutil
fake_server command
Package main is a simple TCP server which accepts any command line arguments, in order to test service discovery which uses the command line for detection.
Package main is a simple TCP server which accepts any command line arguments, in order to test service discovery which uses the command line for detection.

Jump to

Keyboard shortcuts

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