Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
/ alas Public archive

amazon linux alas parser

Notifications You must be signed in to change notification settings

quay/alas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alas

alas exports structs used for xml parsing of Amazon linux security advisories. https://alas.aws.amazon.com/

Usage

mirror := "http://packages.us-west-2.amazonaws.com/2018.03/updates/ae5e4d63edf2/x86_64/repodata/repomd.xml"
resp, _ := http.Get(mirror)
repomd := &RepoMD{}
err = xml.NewDecoder(resp.Body).Decode(repomd)
updateRepo := repomd.Repo(UpdateInfo, "http://packages.us-west-2.amazonaws.com/2018.03/updates/ae5e4d63edf2/x86_64/")
resp, _ := http.Get(updateRepo.Location.Href)
updates := &Updates{}
err = xml.NewDecoder(resp.Body).Decode(updates)