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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(path string, id string, res *[]*Result, openFile func(path string) (api.File, error)) error

func ScanContainer

func ScanContainer(container api.Container, result *[]*Result) error

func ScanImage

func ScanImage(image api.Image, result *[]*Result) error

Types

type Result

type Result struct {
	Code        ResultCode `json:"code"`
	File        string     `json:"file"`
	DisplayPath string     `json:"parent"`
}

func ScanFile

func ScanFile(file api.File, path string, depth int) (*Result, error)

type ResultCode

type ResultCode string
const (
	Vulnerable     ResultCode = "Vulnerable"
	FixedVersion   ResultCode = "FixedVersion"
	NotDetected    ResultCode = "NotDetected"
	JarDetectDepth            = 16
)

Jump to

Keyboard shortcuts

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