universal

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithDataDirs

func OptionWithDataDirs(dirs []string) func(s *Scanner)

OptionWithDataDirs - location of rego policy directories - policies are loaded recursively

func OptionWithPolicyDirs

func OptionWithPolicyDirs(dirs []string) func(s *Scanner)

OptionWithPolicyDirs - location of rego policy directories - policies are loaded recursively

func OptionWithPolicyNamespaces

func OptionWithPolicyNamespaces(namespaces ...string) func(s *Scanner)

OptionWithPolicyNamespaces - namespaces which indicate rego policies containing enforced rules

Types

type Option

type Option func(*Scanner)

func OptionWithDebug

func OptionWithDebug(w io.Writer) Option

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

func OptionWithTerraformVarsPaths

func OptionWithTerraformVarsPaths(paths []string) Option

OptionWithTerraformVarsPaths paths to tfvars files for Terraform

func OptionWithTerraformWorkspace

func OptionWithTerraformWorkspace(ws string) Option

OptionWithTerraformWorkspace specify Terraform workspace

func OptionWithTrace

func OptionWithTrace(w io.Writer) Option

OptionWithTrace specifies an io.Writer for trace logs (mainly rego tracing) - if not set, they are discarded

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Scanner

func (*Scanner) ScanFS

func (s *Scanner) ScanFS(ctx context.Context, fs fs.FS, dir string) (scan.Results, error)

Jump to

Keyboard shortcuts

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