binscan

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	CheckFile(filesystem fs.FS, path string) (*Vulnerability, error)
}

type Vulnerability

type Vulnerability struct {
	// The path to the file (in given filesystem)
	Name string
	// The hash of the file
	Hash string
	// Where the vulnerability was mentioned
	Source string
	// Description of the vulnerability
	Reason string
}

func Scan

func Scan(filesystem fs.FS, root string, database Database) ([]Vulnerability, error)

func (Vulnerability) String

func (this Vulnerability) String() string

Jump to

Keyboard shortcuts

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