Documentation ¶
Overview ¶
Package process is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSystemResources ¶ added in v0.5.0
type MockSystemResources struct {
// contains filtered or unexported fields
}
MockSystemResources is a mock of SystemResources interface
func NewMockSystemResources ¶ added in v0.5.0
func NewMockSystemResources(ctrl *gomock.Controller) *MockSystemResources
NewMockSystemResources creates a new mock instance
func (*MockSystemResources) EXPECT ¶ added in v0.5.0
func (m *MockSystemResources) EXPECT() *MockSystemResourcesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSystemResources) GetPorts ¶ added in v0.5.0
func (m *MockSystemResources) GetPorts() ProcessPorts
GetPorts mocks base method
func (*MockSystemResources) GetProcesses ¶ added in v0.5.0
func (m *MockSystemResources) GetProcesses() ([]scantron.Process, error)
GetProcesses mocks base method
type MockSystemResourcesMockRecorder ¶ added in v0.5.0
type MockSystemResourcesMockRecorder struct {
// contains filtered or unexported fields
}
MockSystemResourcesMockRecorder is the mock recorder for MockSystemResources
func (*MockSystemResourcesMockRecorder) GetPorts ¶ added in v0.5.0
func (mr *MockSystemResourcesMockRecorder) GetPorts() *gomock.Call
GetPorts indicates an expected call of GetPorts
func (*MockSystemResourcesMockRecorder) GetProcesses ¶ added in v0.5.0
func (mr *MockSystemResourcesMockRecorder) GetProcesses() *gomock.Call
GetProcesses indicates an expected call of GetProcesses
type ProcessPort ¶ added in v0.5.0
type ProcessPorts ¶ added in v0.5.0
type ProcessPorts []ProcessPort
func (ProcessPorts) LocalPortsForPID ¶ added in v0.5.0
func (ps ProcessPorts) LocalPortsForPID(pid int) []scantron.Port
type ProcessScanner ¶ added in v0.5.0
type ProcessScanner struct { SysRes SystemResources TlsScan tlsscan.TlsScanner }
func (*ProcessScanner) ScanProcesses ¶ added in v0.5.0
type SystemResourceImpl ¶ added in v0.5.0
type SystemResourceImpl struct { }
func (*SystemResourceImpl) GetPorts ¶ added in v0.5.0
func (s *SystemResourceImpl) GetPorts() ProcessPorts
func (*SystemResourceImpl) GetProcesses ¶ added in v0.5.0
func (s *SystemResourceImpl) GetProcesses() ([]scantron.Process, error)
type SystemResources ¶ added in v0.5.0
type SystemResources interface { GetProcesses() ([]scantron.Process, error) GetPorts() ProcessPorts }
Click to show internal directories.
Click to hide internal directories.