toml

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithDataDirs

func OptionWithDataDirs(paths ...string) func(s *Scanner)

func OptionWithDebug

func OptionWithDebug(debugWriter io.Writer) func(s *Scanner)

OptionWithDebug - pass the scanner an io.Writer to log debug messages to

func OptionWithPolicyDirs

func OptionWithPolicyDirs(paths ...string) func(s *Scanner)

func OptionWithPolicyNamespaces

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

OptionWithPolicyNamespaces - namespaces which indicate rego policies containing enforced rules

Types

type Option

type Option func(s *Scanner)

func OptionWithTrace

func OptionWithTrace(w io.Writer) Option

type Scanner

type Scanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(options ...Option) *Scanner

func (*Scanner) ScanFS

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

func (*Scanner) ScanFile

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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