config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "GoSCA_0.4.2"

Functions

This section is empty.

Types

type AstFile added in v0.4.0

type AstFile struct {
	FilePath    string
	FileContent []byte
	FileAst     *ast.File
	Imports     []*ast.ImportSpec
}

func (*AstFile) Load added in v0.4.0

func (a *AstFile) Load() error

type Dependence

type Dependence struct {
	Module   string
	Versions []string
}

func (Dependence) GetMatches

func (d Dependence) GetMatches(vulDbIdxMap VulDbIdxMap) ([]string, bool)

type Imports

type Imports struct {
	// The path to the go package which contains .go file
	PackagePaths []string
	// package -> .go file paths
	PackageLocationMap map[string][]string
}

func (Imports) GetImports

func (i Imports) GetImports()

type VulDbIdxMap

type VulDbIdxMap map[string][]VulnDbIdx

type VulnDb

type VulnDb struct {
	Module             string              `yaml:"module"`
	Package            string              `yaml:"package"`
	AdditionalPackages []VulnDb            `yaml:"additional_packages"`
	Versions           []map[string]string `yaml:"versions"`
	Description        string              `yaml:"description"`
	//Published          string              `yaml:"published"`
	Cves           []string `yaml:"cves"`
	Cvss3          []string `yaml:"cvss3"`
	Severities     []string `yaml:"severities"`
	Symbols        []string `yaml:"symbols"`
	DerivedSymbols []string `yaml:"derived_symbols"`
	Links          link     `yaml:"links"`
}

func (*VulnDb) String

func (v *VulnDb) String() string

type VulnDbIdx

type VulnDbIdx struct {
	Id       string
	Versions []map[string]string
}

type VulnDbMap

type VulnDbMap map[string]VulnDb

func (VulnDbMap) ReadVulnDbYaml

func (vm VulnDbMap) ReadVulnDbYaml(vulnDBs map[string]string) VulDbIdxMap

Jump to

Keyboard shortcuts

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