Documentation ¶
Index ¶
- func AddHashesToFile(fileName string, hashes []HashResult) error
- func GetPackage(name, url string) (string, error)
- func SubmitJavaPackage(fileName, uri string) (*[]HashResult, error)
- func SubmitPackage(fileName, uri string) (*[]HashResult, error)
- type Affected
- type CVEDBEntry
- type FileResult
- type HashResult
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.