Documentation ¶
Index ¶
- type GCloudMock
- type GCloudServiceMock
- type MockCloudAPI
- type MockEC2API
- type MockRunner
- type MockTenableAPI
- func (m *MockTenableAPI) DownloadExport() error
- func (m *MockTenableAPI) GetVulnerabilities() (*tenable.Alerts, error)
- func (m *MockTenableAPI) LaunchScan() error
- func (m *MockTenableAPI) SetTargets(input []string) error
- func (m *MockTenableAPI) StartExport() error
- func (m *MockTenableAPI) WaitForExport() error
- func (m *MockTenableAPI) WaitForScanToComplete() error
- type ResettableMock
- type SlackInterfaceMock
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 ¶
func (*ResettableMock) Reset ¶
func (m *ResettableMock) Reset()
type SlackInterfaceMock ¶
type SlackInterfaceMock struct {
ResettableMock
}
func (*SlackInterfaceMock) PrintAlerts ¶
func (s *SlackInterfaceMock) PrintAlerts(alerts tenable.Alerts) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.