scanner

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 29 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSupportedServices

func AllSupportedServices() []string

func ScannerWithAWSEndpoint

func ScannerWithAWSEndpoint(endpoint string) options.ScannerOption

func ScannerWithAWSRegion

func ScannerWithAWSRegion(region string) options.ScannerOption

func ScannerWithAWSServices

func ScannerWithAWSServices(services ...string) options.ScannerOption

func ScannerWithConcurrencyStrategy

func ScannerWithConcurrencyStrategy(strategy concurrency.Strategy) options.ScannerOption

func ScannerWithProgressTracker

func ScannerWithProgressTracker(t progress.Tracker) options.ScannerOption

Types

type AWSScanner added in v0.10.0

type AWSScanner struct {
}

func NewScanner added in v0.10.0

func NewScanner() *AWSScanner

func (*AWSScanner) Scan added in v0.10.0

func (s *AWSScanner) Scan(ctx context.Context, option flag.Options) (scan.Results, bool, error)

type ConfigurableAWSScanner

type ConfigurableAWSScanner interface {
	options.ConfigurableScanner
	SetProgressTracker(t progress.Tracker)
	SetAWSRegion(region string)
	SetAWSEndpoint(endpoint string)
	SetAWSServices(services []string)
	SetConcurrencyStrategy(strategy concurrency.Strategy)
}

type Scanner

type Scanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(opts ...iacOptions.ScannerOption) *Scanner

func (*Scanner) CreateState

func (s *Scanner) CreateState(ctx context.Context) (*state.State, error)

func (*Scanner) Name

func (s *Scanner) Name() string

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, cloudState *state.State) (results scan.Results, err error)

func (*Scanner) ScanWithStateRefresh

func (s *Scanner) ScanWithStateRefresh(ctx context.Context) (results scan.Results, err error)

func (*Scanner) SetAWSEndpoint

func (s *Scanner) SetAWSEndpoint(endpoint string)

func (*Scanner) SetAWSRegion

func (s *Scanner) SetAWSRegion(region string)

func (*Scanner) SetAWSServices

func (s *Scanner) SetAWSServices(services []string)

func (*Scanner) SetConcurrencyStrategy

func (s *Scanner) SetConcurrencyStrategy(strategy concurrency.Strategy)

func (*Scanner) SetFrameworks

func (s *Scanner) SetFrameworks(frameworks []framework.Framework)

func (*Scanner) SetIncludeDeprecatedChecks added in v0.9.0

func (s *Scanner) SetIncludeDeprecatedChecks(bool)

func (*Scanner) SetProgressTracker

func (s *Scanner) SetProgressTracker(t progress.Tracker)

func (*Scanner) SetRegoOnly

func (s *Scanner) SetRegoOnly(value bool)

func (*Scanner) SetSpec

func (s *Scanner) SetSpec(spec string)

Jump to

Keyboard shortcuts

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