Documentation ¶
Index ¶
- func WithConfigsFS(fsys fs.FS) options.ScannerOption
- func WithParameterFiles(files ...string) options.ScannerOption
- func WithParameters(params map[string]any) options.ScannerOption
- type Scanner
- func (s *Scanner) Name() string
- func (s *Scanner) ScanFS(ctx context.Context, fsys fs.FS, dir string) (results scan.Results, err error)
- func (s *Scanner) ScanFile(ctx context.Context, fsys fs.FS, path string) (scan.Results, error)
- func (s *Scanner) SetFrameworks(frameworks []framework.Framework)
- func (s *Scanner) SetIncludeDeprecatedChecks(b bool)
- func (s *Scanner) SetRegoOnly(regoOnly bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfigsFS ¶
func WithConfigsFS(fsys fs.FS) options.ScannerOption
func WithParameterFiles ¶
func WithParameterFiles(files ...string) options.ScannerOption
func WithParameters ¶
func WithParameters(params map[string]any) options.ScannerOption
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) SetFrameworks ¶
func (*Scanner) SetIncludeDeprecatedChecks ¶ added in v0.52.0
func (*Scanner) SetRegoOnly ¶
Click to show internal directories.
Click to hide internal directories.