mocks

package
v0.0.0-...-6006eb2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCloudMock

type GCloudMock struct {
	ResettableMock
}

func (*GCloudMock) InstancesIPsInRegion

func (g *GCloudMock) InstancesIPsInRegion(region string) ([]string, error)

func (*GCloudMock) Zones

func (g *GCloudMock) Zones() ([]string, error)

type GCloudServiceMock

type GCloudServiceMock interface {
	wrapper.GCloudWrapper
}

type MockCloudAPI

type MockCloudAPI struct {
	ResettableMock
	IPs []string
}

func (*MockCloudAPI) GatherIPs

func (m *MockCloudAPI) GatherIPs() ([]string, error)

func (*MockCloudAPI) Setup

func (m *MockCloudAPI) Setup(input *config.BaseConfig) error

type MockEC2API

type MockEC2API struct {
	ec2iface.EC2API
	ResettableMock
}

func (*MockEC2API) DescribeInstances

func (m *MockEC2API) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

type MockRunner

type MockRunner struct {
	ResettableMock
}

func (*MockRunner) DescribeInstances

func (m *MockRunner) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

type MockTenableAPI

type MockTenableAPI struct {
	ResettableMock
}

func (*MockTenableAPI) DownloadExport

func (m *MockTenableAPI) DownloadExport() error

func (*MockTenableAPI) GetVulnerabilities

func (m *MockTenableAPI) GetVulnerabilities() (*tenable.Alerts, error)

func (*MockTenableAPI) LaunchScan

func (m *MockTenableAPI) LaunchScan() error

func (*MockTenableAPI) SetTargets

func (m *MockTenableAPI) SetTargets(input []string) error

func (*MockTenableAPI) StartExport

func (m *MockTenableAPI) StartExport() error

func (*MockTenableAPI) WaitForExport

func (m *MockTenableAPI) WaitForExport() error

func (*MockTenableAPI) WaitForScanToComplete

func (m *MockTenableAPI) WaitForScanToComplete() error

type ResettableMock

type ResettableMock struct {
	mock.Mock
}

func (*ResettableMock) Reset

func (m *ResettableMock) Reset()

type SlackInterfaceMock

type SlackInterfaceMock struct {
	ResettableMock
}

func (*SlackInterfaceMock) PrintAlerts

func (s *SlackInterfaceMock) PrintAlerts(alerts tenable.Alerts) error

Jump to

Keyboard shortcuts

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