servicediscovery

package
v0.0.0-...-95cd819 Latest Latest
Warning

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

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

Documentation

Overview

Package servicediscovery is a generated GoMock package.

Package servicediscovery contains the Service Discovery corecheck.

Package servicediscovery is a generated GoMock package.

Index

Constants

View Source
const (
	// CheckName is the name of the check.
	CheckName = "service_discovery"
)

Variables

This section is empty.

Functions

func Factory

func Factory() optional.Option[func() check.Check]

Factory creates a new check factory

Types

type Check

type Check struct {
	corechecks.CheckBase
	// contains filtered or unexported fields
}

Check reports discovered services.

func (*Check) Configure

func (c *Check) Configure(senderManager sender.SenderManager, _ uint64, instanceConfig, initConfig integration.Data, source string) error

Configure parses the check configuration and initializes the check

func (*Check) Interval

func (c *Check) Interval() time.Duration

Interval returns how often the check should run.

func (*Check) Run

func (c *Check) Run() error

Run executes the check.

type MockosImpl

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

MockosImpl is a mock of osImpl interface.

func NewMockosImpl

func NewMockosImpl(ctrl *gomock.Controller) *MockosImpl

NewMockosImpl creates a new mock instance.

func (*MockosImpl) DiscoverServices

func (m *MockosImpl) DiscoverServices() (*discoveredServices, error)

DiscoverServices mocks base method.

func (*MockosImpl) EXPECT

func (m *MockosImpl) EXPECT() *MockosImplMockRecorder

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

type MockosImplMockRecorder

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

MockosImplMockRecorder is the mock recorder for MockosImpl.

func (*MockosImplMockRecorder) DiscoverServices

func (mr *MockosImplMockRecorder) DiscoverServices() *gomock.Call

DiscoverServices indicates an expected call of DiscoverServices.

type MockportPoller

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

MockportPoller is a mock of portPoller interface.

func NewMockportPoller

func NewMockportPoller(ctrl *gomock.Controller) *MockportPoller

NewMockportPoller creates a new mock instance.

func (*MockportPoller) EXPECT

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

func (*MockportPoller) OpenPorts

func (m *MockportPoller) OpenPorts() (portlist.List, error)

OpenPorts mocks base method.

type MockportPollerMockRecorder

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

MockportPollerMockRecorder is the mock recorder for MockportPoller.

func (*MockportPollerMockRecorder) OpenPorts

func (mr *MockportPollerMockRecorder) OpenPorts() *gomock.Call

OpenPorts indicates an expected call of OpenPorts.

type Mockproc

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

Mockproc is a mock of proc interface.

func NewMockproc

func NewMockproc(ctrl *gomock.Controller) *Mockproc

NewMockproc creates a new mock instance.

func (*Mockproc) CmdLine

func (m *Mockproc) CmdLine() ([]string, error)

CmdLine mocks base method.

func (*Mockproc) Cwd

func (m *Mockproc) Cwd() (string, error)

Cwd mocks base method.

func (*Mockproc) EXPECT

func (m *Mockproc) EXPECT() *MockprocMockRecorder

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

func (*Mockproc) Environ

func (m *Mockproc) Environ() ([]string, error)

Environ mocks base method.

func (*Mockproc) PID

func (m *Mockproc) PID() int

PID mocks base method.

func (*Mockproc) Stat

func (m *Mockproc) Stat() (procfs.ProcStat, error)

Stat mocks base method.

type MockprocFS

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

MockprocFS is a mock of procFS interface.

func NewMockprocFS

func NewMockprocFS(ctrl *gomock.Controller) *MockprocFS

NewMockprocFS creates a new mock instance.

func (*MockprocFS) AllProcs

func (m *MockprocFS) AllProcs() ([]proc, error)

AllProcs mocks base method.

func (*MockprocFS) EXPECT

func (m *MockprocFS) EXPECT() *MockprocFSMockRecorder

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

type MockprocFSMockRecorder

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

MockprocFSMockRecorder is the mock recorder for MockprocFS.

func (*MockprocFSMockRecorder) AllProcs

func (mr *MockprocFSMockRecorder) AllProcs() *gomock.Call

AllProcs indicates an expected call of AllProcs.

type MockprocMockRecorder

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

MockprocMockRecorder is the mock recorder for Mockproc.

func (*MockprocMockRecorder) CmdLine

func (mr *MockprocMockRecorder) CmdLine() *gomock.Call

CmdLine indicates an expected call of CmdLine.

func (*MockprocMockRecorder) Cwd

func (mr *MockprocMockRecorder) Cwd() *gomock.Call

Cwd indicates an expected call of Cwd.

func (*MockprocMockRecorder) Environ

func (mr *MockprocMockRecorder) Environ() *gomock.Call

Environ indicates an expected call of Environ.

func (*MockprocMockRecorder) PID

func (mr *MockprocMockRecorder) PID() *gomock.Call

PID indicates an expected call of PID.

func (*MockprocMockRecorder) Stat

func (mr *MockprocMockRecorder) Stat() *gomock.Call

Stat indicates an expected call of Stat.

type Mocktimer

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

Mocktimer is a mock of timer interface.

func NewMocktimer

func NewMocktimer(ctrl *gomock.Controller) *Mocktimer

NewMocktimer creates a new mock instance.

func (*Mocktimer) EXPECT

func (m *Mocktimer) EXPECT() *MocktimerMockRecorder

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

func (*Mocktimer) Now

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

Now mocks base method.

type MocktimerMockRecorder

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

MocktimerMockRecorder is the mock recorder for Mocktimer.

func (*MocktimerMockRecorder) Now

func (mr *MocktimerMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

Directories

Path Synopsis
Package apm provides functionality to detect the type of APM instrumentation a service is using.
Package apm provides functionality to detect the type of APM instrumentation a service is using.
Package language provides functionality to detect the programming language for a given process.
Package language provides functionality to detect the programming language for a given process.
reader
Package reader provides utils around io.Reader.
Package reader provides utils around io.Reader.
Package portlist provides functionality to fetch open ports in the current machine.
Package portlist provides functionality to fetch open ports in the current machine.
Package servicetype provides functionality to detect the service type for a given process.
Package servicetype provides functionality to detect the service type for a given process.
Package usm provides functionality to detect the most appropriate service name for a process.
Package usm provides functionality to detect the most appropriate service name for a process.

Jump to

Keyboard shortcuts

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