aws

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 23 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 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(s2 ...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(b 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(s2 ...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(b bool)

func (*Scanner) SetSpec

func (s *Scanner) SetSpec(spec string)

func (*Scanner) SetTraceWriter

func (s *Scanner) SetTraceWriter(writer 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