process

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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

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

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 ProcessPort struct {
	PID  int
	Port scantron.Port
}

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

func (ps *ProcessScanner) ScanProcesses(logger scanlog.Logger) ([]scantron.Process, error)

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
}

Jump to

Keyboard shortcuts

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