scanners

package
v0.71.12 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIScanner added in v0.69.0

type APIScanner interface {
	// Name provides the human-readable name of the scanner e.g. "AWS API"
	Name() string

	// Scan scans an API and returns results
	Scan(ctx context.Context) (scan.Results, error)
}

type FSScanner added in v0.69.0

type FSScanner interface {
	// Name provides the human-readable name of the scanner e.g. "CloudFormation"
	Name() string
	// ScanFS scans the given filesystem for issues, starting at the provided directory.
	// Use '.' to scan an entire filesystem.
	ScanFS(ctx context.Context, fs fs.FS, dir string) (scan.Results, error)
}

type WriteFileFS

type WriteFileFS interface {
	WriteFile(name string, data []byte, perm os.FileMode) error
}

Directories

Path Synopsis
cloud
aws
parser/funcs
Copied from github.com/hashicorp/terraform/internal/lang/funcs
Copied from github.com/hashicorp/terraform/internal/lang/funcs

Jump to

Keyboard shortcuts

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