aws

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 23 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 added in v0.71.0

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 added in v0.77.0

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 added in v0.77.0

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 added in v0.71.0

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

func (*Scanner) SetDataDirs

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

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) SetSkipRequiredCheck

func (s *Scanner) SetSkipRequiredCheck(b bool)

func (*Scanner) SetTraceWriter

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

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