amazon

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With

func With(mirrorListURI map[string]string, vulnListDir, al2022ReleasemdURI, al2022MirrorListURIFormat string) option

With takes some internal values for testing

Types

type ALAS

type ALAS struct {
	ID          string      `xml:"id" json:"id,omitempty"`
	Title       string      `xml:"title" json:"title,omitempty"`
	Issued      Date        `xml:"issued" json:"issued,omitempty"`
	Updated     Date        `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 Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(opts ...option) *Config

func (Config) Update

func (ac Config) Update() error

type Date

type Date struct {
	Date string `xml:"date,attr" json:"date,omitempty"`
}

Updated has updated at

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 information

type Release

type Release struct {
	Version string `xml:"version,attr"`
}

type Releases

type Releases struct {
	Release []Release `xml:"release"`
}

type Repo

type Repo struct {
	Type     string   `xml:"type,attr"`
	Location Location `xml:"location"`
}

Repo has a repo data

type RepoMd

type RepoMd struct {
	RepoList []Repo `xml:"data"`
}

RepoMd has repomd data

type Root

type Root struct {
	Releases Releases `xml:"releases"`
}

Root has list of releases

type UpdateInfo

type UpdateInfo struct {
	ALASList []ALAS `xml:"update"`
}

UpdateInfo has a list of ALAS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL