amazon

package
v0.0.0-...-cd20b3e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoUpdateInfo = errors.New("no updateinfo field")

Functions

func Fetch

func Fetch(opts ...Option) error

Types

type MirrorURL

type MirrorURL struct {
	Core  string
	Extra string

	KernelLivePatch string
	// contains filtered or unexported fields
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDir

func WithDir(dir string) Option

func WithMirrorURLs

func WithMirrorURLs(u map[string]MirrorURL) Option

func WithRetry

func WithRetry(retry int) Option

type Update

type Update struct {
	ID      string `xml:"id"`
	Author  string `xml:"author,attr"`
	From    string `xml:"from,attr"`
	Status  string `xml:"status,attr"`
	Type    string `xml:"type,attr"`
	Version string `xml:"version,attr"`
	Title   string `xml:"title"`
	Issued  struct {
		Date string `xml:"date,attr"`
	} `xml:"issued"`
	Updated struct {
		Date string `xml:"date,attr"`
	} `xml:"updated"`
	Severity    string `xml:"severity"`
	Description string `xml:"description"`
	References  struct {
		Reference []struct {
			Href  string `xml:"href,attr"`
			ID    string `xml:"id,attr"`
			Title string `xml:"title,attr"`
			Type  string `xml:"type,attr"`
		} `xml:"reference"`
	} `xml:"references"`
	Pkglist struct {
		Collection struct {
			Short   string `xml:"short,attr"`
			Name    string `xml:"name"`
			Package []struct {
				Arch     string `xml:"arch,attr"`
				Epoch    string `xml:"epoch,attr"`
				Name     string `xml:"name,attr"`
				Release  string `xml:"release,attr"`
				Version  string `xml:"version,attr"`
				Filename string `xml:"filename"`
			} `xml:"package"`
		} `xml:"collection"`
	} `xml:"pkglist"`
}

Jump to

Keyboard shortcuts

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