Documentation ¶
Index ¶
- type ConfigurableParser
- type ConfigurableScanner
- type ParserOption
- type ScannerOption
- func OptionWithPolicyReaders(readers ...io.Reader) ScannerOption
- func ScannerWithDataDirs(paths ...string) ScannerOption
- func ScannerWithDebug(w io.Writer) ScannerOption
- func ScannerWithPerResultTracing(enabled bool) ScannerOption
- func ScannerWithPolicyDirs(paths ...string) ScannerOption
- func ScannerWithPolicyFilesystem(f fs.FS) ScannerOption
- func ScannerWithPolicyNamespaces(namespaces ...string) ScannerOption
- func ScannerWithSkipRequiredCheck(skip bool) 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 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 OptionWithPolicyReaders ¶
func OptionWithPolicyReaders(readers ...io.Reader) ScannerOption
func ScannerWithDataDirs ¶
func ScannerWithDataDirs(paths ...string) ScannerOption
func ScannerWithDebug ¶
func ScannerWithDebug(w io.Writer) ScannerOption
ScannerWithDebug specifies an io.Writer for debug logs - if not set, they are discarded
func ScannerWithPerResultTracing ¶
func ScannerWithPerResultTracing(enabled bool) ScannerOption
func ScannerWithPolicyDirs ¶
func ScannerWithPolicyDirs(paths ...string) ScannerOption
func ScannerWithPolicyFilesystem ¶ added in v0.46.0
func ScannerWithPolicyFilesystem(f fs.FS) ScannerOption
func ScannerWithPolicyNamespaces ¶
func ScannerWithPolicyNamespaces(namespaces ...string) ScannerOption
ScannerWithPolicyNamespaces - namespaces which indicate rego policies containing enforced rules
func ScannerWithSkipRequiredCheck ¶ added in v0.40.0
func ScannerWithSkipRequiredCheck(skip bool) 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.