v1

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 is a container for endpoints that are used to power the v1 of the service.

Package v1 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyCheckHandler added in v0.9.0

type DependencyCheckHandler struct {
	DependencyCheck domain.DependencyCheck
}

DependencyCheckHandler takes in a domain.DependencyChecker to check external dependencies

func (*DependencyCheckHandler) Handle added in v0.9.0

Handle makes a call CheckDependencies from DependencyChecker that verifies this app can talk to it's external dependencies

type MockAssetValidator added in v1.1.0

type MockAssetValidator struct {
	// contains filtered or unexported fields
}

MockAssetValidator is a mock of AssetValidator interface

func NewMockAssetValidator added in v1.1.0

func NewMockAssetValidator(ctrl *gomock.Controller) *MockAssetValidator

NewMockAssetValidator creates a new mock instance

func (*MockAssetValidator) EXPECT added in v1.1.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAssetValidator) ValidateAssets added in v1.1.0

func (m *MockAssetValidator) ValidateAssets(ctx context.Context, assets []domain.Asset, scanID string) ([]domain.AssetEvent, []error)

ValidateAssets mocks base method

type MockAssetValidatorMockRecorder added in v1.1.0

type MockAssetValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockAssetValidatorMockRecorder is the mock recorder for MockAssetValidator

func (*MockAssetValidatorMockRecorder) ValidateAssets added in v1.1.0

func (mr *MockAssetValidatorMockRecorder) ValidateAssets(ctx, assets, scanID interface{}) *gomock.Call

ValidateAssets indicates an expected call of ValidateAssets

type NexposeScannedAssetProducer added in v0.3.0

type NexposeScannedAssetProducer struct {
	Producer       domain.Producer
	AssetFetcher   domain.AssetFetcher
	AssetValidator domain.AssetValidator
	LogFn          domain.LogFn
	StatFn         domain.StatFn
}

NexposeScannedAssetProducer is a lambda handler that fetches Nexpose Assets and sends them to an event stream

func (*NexposeScannedAssetProducer) Handle added in v0.3.0

Handle is an AWS Lambda handler that takes in a SiteID for a Nexpose scan that has completed, get all the assets in the site that was scanned and produces each asset to a stream

type ScanInfo

type ScanInfo struct {
	// SiteID is the ID of the site that just got scanned
	SiteID string `json:"siteID"`
	// ScanID is the ID of the scan that just completed
	ScanID string `json:"scanID"`
}

ScanInfo represents the fields we want from the incoming payload

Jump to

Keyboard shortcuts

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