scanner

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Risks []Risk `json:"risks"`
	*Rule `json:"rule"`
}

type Risk

type Risk struct {
	StartLine int64
	EndLine   int64
	FilePath  string
	Original  string
}

type Rule

type Rule struct {
	Id          string
	Name        string
	Description string
	Reference   string
	Severity    string
	Solution    string
	Type        string
}

type Scanner

type Scanner struct {
	QueryPre string
	Policies map[string]*ast.Module
}

func (*Scanner) LoadLibs

func (bs *Scanner) LoadLibs() error

func (*Scanner) LoadRules

func (bs *Scanner) LoadRules(fileType api.IACType) error

func (*Scanner) Scan

func (bs *Scanner) Scan(ctx context.Context, iacFile api.IAC) ([]Result, error)

Jump to

Keyboard shortcuts

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