options

package
v0.82.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 3 Imported by: 82

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurableParser

type ConfigurableParser interface {
	SetDebugWriter(io.Writer)
	SetSkipRequiredCheck(bool)
}

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)
	SetUseEmbeddedPolicies(bool)
	SetFrameworks(frameworks []framework.Framework)
	SetSpec(spec string)
	SetRegoOnly(regoOnly 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 ScannerWithDebug

func ScannerWithDebug(w io.Writer) ScannerOption

ScannerWithDebug specifies an io.Writer for debug logs - if not set, they are discarded

func ScannerWithEmbeddedPolicies added in v0.54.0

func ScannerWithEmbeddedPolicies(embedded bool) ScannerOption

func ScannerWithFrameworks added in v0.69.0

func ScannerWithFrameworks(frameworks ...framework.Framework) ScannerOption

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 ScannerWithPolicyReader added in v0.69.0

func ScannerWithPolicyReader(readers ...io.Reader) ScannerOption

func ScannerWithRegoOnly added in v0.80.1

func ScannerWithRegoOnly(regoOnly bool) ScannerOption

func ScannerWithSkipRequiredCheck added in v0.40.0

func ScannerWithSkipRequiredCheck(skip bool) ScannerOption

func ScannerWithSpec added in v0.82.5

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL