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(s2 ...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(b bool)
- func (s *Scanner) SetPolicyDirs(dirs ...string)
- func (s *Scanner) SetPolicyFilesystem(fs fs.FS)
- func (s *Scanner) SetPolicyNamespaces(s2 ...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(b bool)
- func (s *Scanner) SetSpec(spec string)
- func (s *Scanner) SetTraceWriter(writer 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 ¶ 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 ¶
func New ¶
func New(opts ...options.ScannerOption) *Scanner
func (*Scanner) CreateState ¶ added in v0.77.0
func (*Scanner) ScanWithStateRefresh ¶ added in v0.77.0
func (*Scanner) SetAWSEndpoint ¶
func (*Scanner) SetAWSRegion ¶
func (*Scanner) SetAWSServices ¶
func (*Scanner) SetConcurrencyStrategy ¶ added in v0.71.0
func (s *Scanner) SetConcurrencyStrategy(strategy concurrency.Strategy)
func (*Scanner) SetDataDirs ¶
func (*Scanner) SetDataFilesystem ¶ added in v0.82.10
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 ¶ added in v0.89.0
func (*Scanner) SetRegoOnly ¶ added in v0.80.1
func (*Scanner) SetSkipRequiredCheck ¶
func (*Scanner) SetTraceWriter ¶
func (*Scanner) SetUseEmbeddedLibraries ¶ added in v0.87.0
func (*Scanner) SetUseEmbeddedPolicies ¶
Click to show internal directories.
Click to hide internal directories.