Documentation ¶
Index ¶
- type ConfigurableParser
- type ConfigurableScanner
- type ParserOption
- type ScannerOption
- func ScannerWithDataDirs(paths ...string) ScannerOption
- func ScannerWithDataFilesystem(f fs.FS) ScannerOption
- func ScannerWithDebug(w io.Writer) ScannerOption
- func ScannerWithEmbeddedLibraries(enabled bool) ScannerOption
- func ScannerWithEmbeddedPolicies(embedded bool) ScannerOption
- func ScannerWithFrameworks(frameworks ...framework.Framework) 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 ScannerWithSkipRequiredCheck(skip 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 ConfigurableParser ¶
type ConfigurableScanner ¶
type ConfigurableScanner interface { SetDebugWriter(io.Writer) SetTraceWriter(io.Writer) SetPerResultTracingEnabled(bool) SetPolicyDirs(...string) SetDataDirs(...string) SetPolicyNamespaces(...string) SetSkipRequiredCheck(bool) 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) }
type ParserOption ¶
type ParserOption func(s ConfigurableParser)
func ParserWithDebug ¶
func ParserWithDebug(w io.Writer) ParserOption
ParserWithDebug specifies an io.Writer for debug logs - if not set, they are discarded
func ParserWithSkipRequiredCheck ¶
func ParserWithSkipRequiredCheck(skip bool) ParserOption
type ScannerOption ¶
type ScannerOption func(s ConfigurableScanner)
func ScannerWithDataDirs ¶
func ScannerWithDataDirs(paths ...string) ScannerOption
func ScannerWithDataFilesystem ¶ added in v0.0.2
func ScannerWithDataFilesystem(f fs.FS) ScannerOption
func ScannerWithDebug ¶
func ScannerWithDebug(w io.Writer) ScannerOption
ScannerWithDebug specifies an io.Writer for debug logs - if not set, they are discarded
func ScannerWithEmbeddedLibraries ¶ added in v0.0.2
func ScannerWithEmbeddedLibraries(enabled bool) ScannerOption
func ScannerWithEmbeddedPolicies ¶
func ScannerWithEmbeddedPolicies(embedded bool) ScannerOption
func ScannerWithFrameworks ¶ added in v0.0.2
func ScannerWithFrameworks(frameworks ...framework.Framework) 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 ¶ added in v0.0.2
func ScannerWithPolicyReader(readers ...io.Reader) ScannerOption
func ScannerWithRegoErrorLimits ¶ added in v0.0.2
func ScannerWithRegoErrorLimits(limit int) ScannerOption
func ScannerWithRegoOnly ¶ added in v0.0.2
func ScannerWithRegoOnly(regoOnly bool) ScannerOption
func ScannerWithSkipRequiredCheck ¶
func ScannerWithSkipRequiredCheck(skip bool) ScannerOption
func ScannerWithSpec ¶ added in v0.0.2
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.