Documentation ¶
Index ¶
- type ALAS
- type FetchResult
- func FetchAlpineFiles(versions []string) ([]FetchResult, error)
- func FetchDebianFiles(versions []string) ([]FetchResult, error)
- func FetchOracleFiles() ([]FetchResult, error)
- func FetchRedHatFiles(versions []string) ([]FetchResult, error)
- func FetchSUSEFiles(suseType string, versions []string) ([]FetchResult, error)
- func FetchUbuntuFiles(versions []string) ([]FetchResult, error)
- type Location
- type Package
- type Reference
- type Repo
- type RepoMd
- type UpdateInfo
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALAS ¶
type ALAS struct { ID string `xml:"id" json:"id,omitempty"` Updated Updated `xml:"updated" json:"updated,omitempty"` Severity string `xml:"severity" json:"severity,omitempty"` Description string `xml:"description" json:"description,omitempty"` Packages []Package `xml:"pkglist>collection>package" json:"packages,omitempty"` References []Reference `xml:"references>reference" json:"references,omitempty"` CVEIDs []string `json:"cveiDs,omitempty"` }
ALAS has detailed data of ALAS
type FetchResult ¶
FetchResult has url and OVAL definitions
func FetchAlpineFiles ¶
func FetchAlpineFiles(versions []string) ([]FetchResult, error)
FetchAlpineFiles fetch from alpine secdb https://git.alpinelinux.org/cgit/alpine-secdb/tree/
func FetchDebianFiles ¶
func FetchDebianFiles(versions []string) ([]FetchResult, error)
FetchDebianFiles fetch OVAL from RedHat
func FetchOracleFiles ¶
func FetchOracleFiles() ([]FetchResult, error)
FetchOracleFiles fetch OVAL from Oracle
func FetchRedHatFiles ¶
func FetchRedHatFiles(versions []string) ([]FetchResult, error)
FetchRedHatFiles fetch OVAL from RedHat
func FetchSUSEFiles ¶
func FetchSUSEFiles(suseType string, versions []string) ([]FetchResult, error)
FetchSUSEFiles fetch OVAL from RedHat
func FetchUbuntuFiles ¶
func FetchUbuntuFiles(versions []string) ([]FetchResult, error)
FetchUbuntuFiles fetch OVAL from Ubuntu
type Location ¶
type Location struct {
Href string `xml:"href,attr"`
}
Location has a location of repomd
type Package ¶
type Package struct { Name string `xml:"name,attr" json:"name,omitempty"` Epoch string `xml:"epoch,attr" json:"epoch,omitempty"` Version string `xml:"version,attr" json:"version,omitempty"` Release string `xml:"release,attr" json:"release,omitempty"` Arch string `xml:"arch,attr" json:"arch,omitempty"` Filename string `xml:"filename" json:"filename,omitempty"` }
Package has affected package information
type Reference ¶
type Reference struct { Href string `xml:"href,attr" json:"href,omitempty"` ID string `xml:"id,attr" json:"id,omitempty"` Title string `xml:"title,attr" json:"title,omitempty"` Type string `xml:"type,attr" json:"type,omitempty"` }
Reference has reference informaiton
type UpdateInfo ¶
type UpdateInfo struct {
ALASList []ALAS `xml:"update"`
}
UpdateInfo has a list of ALAS
func FetchUpdateInfoAmazonLinux1 ¶
func FetchUpdateInfoAmazonLinux1() (*UpdateInfo, error)
FetchUpdateInfoAmazonLinux1 fetches a list of Amazon Linux1 updateinfo
func FetchUpdateInfoAmazonLinux2 ¶
func FetchUpdateInfoAmazonLinux2() (*UpdateInfo, error)
FetchUpdateInfoAmazonLinux2 fetches a list of Amazon Linux2 updateinfo