Documentation
¶
Index ¶
- func ScannerWithAPIVersions(values ...string) options.ScannerOption
- func ScannerWithFileValues(values ...string) options.ScannerOption
- func ScannerWithKubeVersion(values string) options.ScannerOption
- func ScannerWithStringValues(values ...string) options.ScannerOption
- func ScannerWithValues(values ...string) options.ScannerOption
- func ScannerWithValuesFile(paths ...string) options.ScannerOption
- type Scanner
- func (s *Scanner) Name() string
- func (s *Scanner) ScanFS(ctx context.Context, target fs.FS, path string) (scan.Results, error)
- func (s *Scanner) SetCustomSchemas(map[string][]byte)
- func (s *Scanner) SetDataDirs(dirs ...string)
- func (s *Scanner) SetDataFilesystem(_ fs.FS)
- func (s *Scanner) SetFrameworks(frameworks []framework.Framework)
- func (s *Scanner) SetIncludeDeprecatedChecks(bool)
- func (s *Scanner) SetPerResultTracingEnabled(_ bool)
- func (s *Scanner) SetPolicyDirs(dirs ...string)
- func (s *Scanner) SetPolicyFilesystem(policyFS fs.FS)
- func (s *Scanner) SetPolicyNamespaces(namespaces ...string)
- func (s *Scanner) SetPolicyReaders(readers []io.Reader)
- func (s *Scanner) SetRegoErrorLimit(_ int)
- func (s *Scanner) SetRegoOnly(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 ScannerWithAPIVersions ¶
func ScannerWithAPIVersions(values ...string) options.ScannerOption
func ScannerWithFileValues ¶
func ScannerWithFileValues(values ...string) options.ScannerOption
func ScannerWithKubeVersion ¶ added in v0.51.0
func ScannerWithKubeVersion(values string) options.ScannerOption
func ScannerWithStringValues ¶
func ScannerWithStringValues(values ...string) options.ScannerOption
func ScannerWithValues ¶
func ScannerWithValues(values ...string) options.ScannerOption
func ScannerWithValuesFile ¶
func ScannerWithValuesFile(paths ...string) options.ScannerOption
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) SetCustomSchemas ¶ added in v0.55.0
func (*Scanner) SetDataDirs ¶
func (*Scanner) SetDataFilesystem ¶
func (*Scanner) SetFrameworks ¶
func (*Scanner) SetIncludeDeprecatedChecks ¶ added in v0.52.0
func (*Scanner) SetPerResultTracingEnabled ¶
func (*Scanner) SetPolicyDirs ¶
func (*Scanner) SetPolicyFilesystem ¶
func (*Scanner) SetPolicyNamespaces ¶
func (*Scanner) SetPolicyReaders ¶
func (*Scanner) SetRegoErrorLimit ¶
func (*Scanner) SetRegoOnly ¶
func (*Scanner) SetTraceWriter ¶
func (*Scanner) SetUseEmbeddedLibraries ¶
func (*Scanner) SetUseEmbeddedPolicies ¶
Click to show internal directories.
Click to hide internal directories.