amazon

package
v0.0.0-...-378edf0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LinuxMirrorListURI = map[string]string{
		"1": "http://repo.us-west-2.amazonaws.com/2018.03/updates/x86_64/mirror.list",
		"2": "https://cdn.amazonlinux.com/2/core/latest/x86_64/mirror.list",
	}
)

Functions

This section is empty.

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 {
	LinuxMirrorListURI map[string]string
	VulnListDir        string
}

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 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 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