fetcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

type FetchResult struct {
	Target string
	URL    string
	Body   []byte
}

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

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

type Updated

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

Updated has updated at

Jump to

Keyboard shortcuts

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