toml

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

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

func NewScanner

func NewScanner(opts ...options.ScannerOption) *Scanner

func (*Scanner) Name added in v0.43.0

func (s *Scanner) Name() string

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)

func (*Scanner) SetDataDirs added in v0.39.0

func (s *Scanner) SetDataDirs(_ ...string)

func (*Scanner) SetDebugWriter added in v0.39.0

func (s *Scanner) SetDebugWriter(writer io.Writer)

func (*Scanner) SetFrameworks added in v0.69.0

func (s *Scanner) SetFrameworks(frameworks []framework.Framework)

func (*Scanner) SetPerResultTracingEnabled added in v0.39.0

func (s *Scanner) SetPerResultTracingEnabled(_ bool)

func (*Scanner) SetPolicyDirs added in v0.39.0

func (s *Scanner) SetPolicyDirs(dirs ...string)

func (*Scanner) SetPolicyFilesystem added in v0.46.0

func (s *Scanner) SetPolicyFilesystem(_ fs.FS)

func (*Scanner) SetPolicyNamespaces added in v0.39.0

func (s *Scanner) SetPolicyNamespaces(_ ...string)

func (*Scanner) SetPolicyReaders added in v0.39.0

func (s *Scanner) SetPolicyReaders(readers []io.Reader)

func (*Scanner) SetSkipRequiredCheck added in v0.39.0

func (s *Scanner) SetSkipRequiredCheck(skip bool)

func (*Scanner) SetTraceWriter added in v0.39.0

func (s *Scanner) SetTraceWriter(_ io.Writer)

func (*Scanner) SetUseEmbeddedPolicies added in v0.54.0

func (s *Scanner) SetUseEmbeddedPolicies(b bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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