mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add CSAF downloader
* Dense and refactor ROLIE code in aggregator a bit. * Move advisory file processor to csaf package. * Fix minor typo on main readme
This commit is contained in:
parent
640ef64df9
commit
b359fd0a62
20 changed files with 929 additions and 239 deletions
|
|
@ -103,19 +103,6 @@ func (rf *ROLIEFeed) EntryByID(id string) *Entry {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Files extracts the files from the feed.
|
||||
func (rf *ROLIEFeed) Files(filter string) []string {
|
||||
var files []string
|
||||
for _, f := range rf.Feed.Entry {
|
||||
for i := range f.Link {
|
||||
if link := &f.Link[i]; link.Rel == filter {
|
||||
files = append(files, link.HRef)
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
// Entries visits the entries of this feed.
|
||||
func (rf *ROLIEFeed) Entries(fn func(*Entry)) {
|
||||
for _, e := range rf.Feed.Entry {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue