kubernetes

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 13 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

func OptionWithPolicyReaders added in v0.30.0

func OptionWithPolicyReaders(readers ...io.Reader) func(s *Scanner)

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, target fs.FS, dir string) (scan.Results, error)

func (*Scanner) ScanReader

func (s *Scanner) ScanReader(ctx context.Context, filename string, reader io.Reader) (scan.Results, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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