1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Improve checker regarding ROLIE feed advisory URLs, hashes and signatures

* Add checking the  ROLIE feed advisory URLs, hashes and signatures.
This commit is contained in:
Sascha L. Teichmann 2022-06-14 13:41:51 +02:00 committed by GitHub
parent 86a6f9abde
commit fa434fa039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 121 additions and 14 deletions

View file

@ -116,6 +116,13 @@ func (rf *ROLIEFeed) Files(filter string) []string {
return files
}
// Entries visits the entries of this feed.
func (rf *ROLIEFeed) Entries(fn func(*Entry)) {
for _, e := range rf.Feed.Entry {
fn(e)
}
}
// SortEntriesByUpdated sorts all the entries in the feed
// by their update times.
func (rf *ROLIEFeed) SortEntriesByUpdated() {