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 ¶
const (
// CheckName is the name of the check.
CheckName = "service_discovery"
)
Variables ¶
This section is empty.
Functions ¶
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
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 ¶
func (m *MockportPoller) EXPECT() *MockportPollerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) EXPECT ¶
func (m *Mockproc) EXPECT() *MockprocMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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.
Source Files
¶
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. |