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
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
func (m *MockAssetValidator) EXPECT() *MockAssetValidatorMockRecorder
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
func (h *NexposeScannedAssetProducer) Handle(ctx context.Context, in ScanInfo) error
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