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, fs fs.FS, dir string) (results scan.Results, err error)
- func (s *Scanner) ScanFile(ctx context.Context, fs fs.FS, path string) (scan.Results, error)
- func (s *Scanner) SetDataDirs(_ ...string)
- func (s *Scanner) SetDataFilesystem(_ 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)
- func (s *Scanner) SetPolicyNamespaces(_ ...string)
- func (s *Scanner) SetPolicyReaders(readers []io.Reader)
- func (s *Scanner) SetRegoErrorLimit(_ int)
- func (s *Scanner) SetRegoOnly(regoOnly bool)
- func (s *Scanner) SetSkipRequiredCheck(skip 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 WithConfigsFS ¶ added in v0.5.0
func WithConfigsFS(fsys fs.FS) options.ScannerOption
func WithParameterFiles ¶ added in v0.5.0
func WithParameterFiles(files ...string) options.ScannerOption
func WithParameters ¶ added in v0.5.0
func WithParameters(params map[string]any) options.ScannerOption
Types ¶
type Scanner ¶
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) 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.