scanner

package
v0.0.0-...-4d7b757 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 21 Imported by: 0

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 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 ...options.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) SetDataDirs

func (s *Scanner) SetDataDirs(...string)

func (*Scanner) SetDataFilesystem

func (s *Scanner) SetDataFilesystem(fs fs.FS)

func (*Scanner) SetDebugWriter

func (s *Scanner) SetDebugWriter(writer io.Writer)

func (*Scanner) SetFrameworks

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

func (*Scanner) SetPerResultTracingEnabled

func (s *Scanner) SetPerResultTracingEnabled(bool)

func (*Scanner) SetPolicyDirs

func (s *Scanner) SetPolicyDirs(dirs ...string)

func (*Scanner) SetPolicyFilesystem

func (s *Scanner) SetPolicyFilesystem(fs fs.FS)

func (*Scanner) SetPolicyNamespaces

func (s *Scanner) SetPolicyNamespaces(...string)

func (*Scanner) SetPolicyReaders

func (s *Scanner) SetPolicyReaders(readers []io.Reader)

func (*Scanner) SetProgressTracker

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

func (*Scanner) SetRegoErrorLimit

func (s *Scanner) SetRegoErrorLimit(int)

func (*Scanner) SetRegoOnly

func (s *Scanner) SetRegoOnly(value bool)

func (*Scanner) SetSkipRequiredCheck

func (s *Scanner) SetSkipRequiredCheck(bool)

func (*Scanner) SetSpec

func (s *Scanner) SetSpec(spec string)

func (*Scanner) SetTraceWriter

func (s *Scanner) SetTraceWriter(io.Writer)

func (*Scanner) SetUseEmbeddedLibraries

func (s *Scanner) SetUseEmbeddedLibraries(b bool)

func (*Scanner) SetUseEmbeddedPolicies

func (s *Scanner) SetUseEmbeddedPolicies(b bool)

Jump to

Keyboard shortcuts

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