Documentation ¶
Index ¶
- type ConfigurableScanner
- type ScannerOption
- func ScannerWithCustomSchemas(schemas map[string][]byte) ScannerOption
- func ScannerWithDataDirs(paths ...string) ScannerOption
- func ScannerWithDataFilesystem(f fs.FS) ScannerOption
- func ScannerWithEmbeddedLibraries(enabled bool) ScannerOption
- func ScannerWithEmbeddedPolicies(embedded bool) ScannerOption
- func ScannerWithFrameworks(frameworks ...framework.Framework) ScannerOption
- func ScannerWithIncludeDeprecatedChecks(enabled bool) ScannerOption
- func ScannerWithPerResultTracing(enabled bool) ScannerOption
- func ScannerWithPolicyDirs(paths ...string) ScannerOption
- func ScannerWithPolicyFilesystem(f fs.FS) ScannerOption
- func ScannerWithPolicyNamespaces(namespaces ...string) ScannerOption
- func ScannerWithPolicyReader(readers ...io.Reader) ScannerOption
- func ScannerWithRegoErrorLimits(limit int) ScannerOption
- func ScannerWithRegoOnly(regoOnly bool) ScannerOption
- func ScannerWithSpec(spec string) ScannerOption
- func ScannerWithTrace(w io.Writer) ScannerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurableScanner ¶
type ConfigurableScanner interface { SetTraceWriter(io.Writer) SetPerResultTracingEnabled(bool) SetPolicyDirs(...string) SetDataDirs(...string) SetPolicyNamespaces(...string) SetPolicyReaders([]io.Reader) SetPolicyFilesystem(fs.FS) SetDataFilesystem(fs.FS) SetUseEmbeddedPolicies(bool) SetFrameworks(frameworks []framework.Framework) SetSpec(spec string) SetRegoOnly(regoOnly bool) SetRegoErrorLimit(limit int) SetUseEmbeddedLibraries(bool) SetIncludeDeprecatedChecks(bool) SetCustomSchemas(map[string][]byte) }
type ScannerOption ¶
type ScannerOption func(s ConfigurableScanner)
func ScannerWithCustomSchemas ¶ added in v0.55.0
func ScannerWithCustomSchemas(schemas map[string][]byte) ScannerOption
func ScannerWithDataDirs ¶
func ScannerWithDataDirs(paths ...string) ScannerOption
func ScannerWithDataFilesystem ¶
func ScannerWithDataFilesystem(f fs.FS) ScannerOption
func ScannerWithEmbeddedLibraries ¶
func ScannerWithEmbeddedLibraries(enabled bool) ScannerOption
func ScannerWithEmbeddedPolicies ¶
func ScannerWithEmbeddedPolicies(embedded bool) ScannerOption
func ScannerWithFrameworks ¶
func ScannerWithFrameworks(frameworks ...framework.Framework) ScannerOption
func ScannerWithIncludeDeprecatedChecks ¶ added in v0.52.0
func ScannerWithIncludeDeprecatedChecks(enabled bool) ScannerOption
func ScannerWithPerResultTracing ¶
func ScannerWithPerResultTracing(enabled bool) ScannerOption
func ScannerWithPolicyDirs ¶
func ScannerWithPolicyDirs(paths ...string) ScannerOption
func ScannerWithPolicyFilesystem ¶
func ScannerWithPolicyFilesystem(f fs.FS) ScannerOption
func ScannerWithPolicyNamespaces ¶
func ScannerWithPolicyNamespaces(namespaces ...string) ScannerOption
ScannerWithPolicyNamespaces - namespaces which indicate rego policies containing enforced rules
func ScannerWithPolicyReader ¶
func ScannerWithPolicyReader(readers ...io.Reader) ScannerOption
func ScannerWithRegoErrorLimits ¶
func ScannerWithRegoErrorLimits(limit int) ScannerOption
func ScannerWithRegoOnly ¶
func ScannerWithRegoOnly(regoOnly bool) ScannerOption
func ScannerWithSpec ¶
func ScannerWithSpec(spec string) ScannerOption
func ScannerWithTrace ¶
func ScannerWithTrace(w io.Writer) ScannerOption
ScannerWithTrace specifies an io.Writer for trace logs (mainly rego tracing) - if not set, they are discarded
Click to show internal directories.
Click to hide internal directories.