scanner

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	Kind                apitypes.CloudProvider
	ScannerRegion       string
	BlockDeviceName     string
	ScannerImage        string
	ScannerInstanceType string
	SecurityGroupID     string
	SubnetID            string
	KeyPairName         string
	Ec2Client           *ec2.Client
}

func (*Scanner) RemoveAssetScan

func (s *Scanner) RemoveAssetScan(ctx context.Context, t *provider.ScanJobConfig) error

RemoveAssetScan removes all the cloud resources associated with a Scan defined by config parameter. The operation is idempotent, therefore it is safe to call it multiple times.

func (*Scanner) RunAssetScan

func (s *Scanner) RunAssetScan(ctx context.Context, t *provider.ScanJobConfig) error

nolint:cyclop,gocognit,maintidx,wrapcheck

Jump to

Keyboard shortcuts

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