process

package
v0.0.0-...-400d6a7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: AGPL-3.0, AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHashesToFile

func AddHashesToFile(fileName string, hashes []HashResult) error

AddHashesToFile adds hash information to a cvedb file

func GetPackage

func GetPackage(name, url string) (string, error)

GetPackage downloads a package from a remote location

func SubmitJavaPackage

func SubmitJavaPackage(fileName, uri string) (*[]HashResult, error)

SubmitJavaPackage submits a java package for hashing Implements https://github.com/victims/victims-java-service

func SubmitPackage

func SubmitPackage(fileName, uri string) (*[]HashResult, error)

SubmitPackage fronts other submittion functions using the proper one based on the file suffix

Types

type Affected

type Affected struct {
	GroupID    string   `yaml:"groupId,omitempty"`
	ArtifactID string   `yaml:"artifactId,omitempty"`
	Version    []string `yaml:"version,omitempty"`
	FixedIn    []string `yaml:"fixedin,omitempty"`
}

Affected represents an affected entity in CVEDBEntry

type CVEDBEntry

type CVEDBEntry struct {
	CVE         string       `yaml:"cve"`
	Title       string       `yaml:"title"`
	Description string       `yaml:"description"`
	CVSSV2      string       `yaml:"cvss_v2"`
	References  []string     `yaml:"references"`
	Hashes      []FileResult `yaml:"hashes"`
	FileHashes  []FileResult `yaml:"file_hashes"`
	Affected    []Affected   `yaml:"affected"`
	PackageURLs []string     `yaml:"package_urls"`
	Name        string       `yaml:"name"`
}

CVEDBEntry represents a single entry in the cvedb

type FileResult

type FileResult struct {
	Name string `json:"name"`
	Hash string `json:"hash"`
}

FileResult which is part of a HashResult

type HashResult

type HashResult struct {
	Hash   string       `json:"hash"`
	Name   string       `json:"name"`
	Format string       `json:"format"`
	Files  []FileResult `json:"files"`
}

A HashResult from a package submission

Jump to

Keyboard shortcuts

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