Documentation ¶
Index ¶
- func AllSupportedServices() []string
- func ScannerWithAWSEndpoint(endpoint string) options.ScannerOption
- func ScannerWithAWSRegion(region string) options.ScannerOption
- func ScannerWithAWSServices(services ...string) options.ScannerOption
- func ScannerWithConcurrencyStrategy(strategy concurrency.Strategy) options.ScannerOption
- func ScannerWithProgressTracker(t progress.Tracker) options.ScannerOption
- type ConfigurableAWSScanner
- type Scanner
- func (s *Scanner) CreateState(ctx context.Context) (*state.State, error)
- func (s *Scanner) Name() string
- func (s *Scanner) Scan(ctx context.Context, cloudState *state.State) (results scan.Results, err error)
- func (s *Scanner) ScanWithStateRefresh(ctx context.Context) (results scan.Results, err error)
- func (s *Scanner) SetAWSEndpoint(endpoint string)
- func (s *Scanner) SetAWSRegion(region string)
- func (s *Scanner) SetAWSServices(services []string)
- func (s *Scanner) SetConcurrencyStrategy(strategy concurrency.Strategy)
- func (s *Scanner) SetDataDirs(...string)
- func (s *Scanner) SetDataFilesystem(fs fs.FS)
- func (s *Scanner) SetDebugWriter(writer io.Writer)
- func (s *Scanner) SetFrameworks(frameworks []framework.Framework)
- func (s *Scanner) SetPerResultTracingEnabled(bool)
- func (s *Scanner) SetPolicyDirs(dirs ...string)
- func (s *Scanner) SetPolicyFilesystem(fs fs.FS)
- func (s *Scanner) SetPolicyNamespaces(...string)
- func (s *Scanner) SetPolicyReaders(readers []io.Reader)
- func (s *Scanner) SetProgressTracker(t progress.Tracker)
- func (s *Scanner) SetRegoErrorLimit(int)
- func (s *Scanner) SetRegoOnly(value bool)
- func (s *Scanner) SetSkipRequiredCheck(bool)
- func (s *Scanner) SetSpec(spec string)
- func (s *Scanner) SetTraceWriter(io.Writer)
- func (s *Scanner) SetUseEmbeddedLibraries(b bool)
- func (s *Scanner) SetUseEmbeddedPolicies(b bool)
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 ¶
func New ¶
func New(opts ...options.ScannerOption) *Scanner
func (*Scanner) CreateState ¶
func (*Scanner) ScanWithStateRefresh ¶
func (*Scanner) SetAWSEndpoint ¶
func (*Scanner) SetAWSRegion ¶
func (*Scanner) SetAWSServices ¶
func (*Scanner) SetConcurrencyStrategy ¶
func (s *Scanner) SetConcurrencyStrategy(strategy concurrency.Strategy)
func (*Scanner) SetDataDirs ¶
func (*Scanner) SetDataFilesystem ¶
func (*Scanner) SetDebugWriter ¶
func (*Scanner) SetFrameworks ¶
func (*Scanner) SetPerResultTracingEnabled ¶
func (*Scanner) SetPolicyDirs ¶
func (*Scanner) SetPolicyFilesystem ¶
func (*Scanner) SetPolicyNamespaces ¶
func (*Scanner) SetPolicyReaders ¶
func (*Scanner) SetProgressTracker ¶
func (*Scanner) SetRegoErrorLimit ¶
func (*Scanner) SetRegoOnly ¶
func (*Scanner) SetSkipRequiredCheck ¶
func (*Scanner) SetTraceWriter ¶
func (*Scanner) SetUseEmbeddedLibraries ¶
func (*Scanner) SetUseEmbeddedPolicies ¶
Click to show internal directories.
Click to hide internal directories.