repository

package
v0.0.0-...-8a944e5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Href string `xml:"href,attr"`
}

type Manifest

type Manifest struct {
	Modules []Module `xml:"module"`
}

type ManifestMetadata

type ManifestMetadata struct {
	RepoType     string   `xml:"type,attr"`
	Checksum     string   `xml:"checksum"`
	OpenChecksum string   `xml:"open_checksum"`
	Location     Location `xml:"location"`
	Timestamp    string   `xml:"timestamp"`
	Size         int      `xml:"size"`
	OpenSize     int      `xml:"open_size"`
}

type Module

type Module struct {
	ModuleType string   `xml:"type,attr"`
	Name       string   `xml:"name"`
	Arch       string   `xml:"arch"`
	Checksum   string   `xml:"checksum"`
	Version    string   `xml:"version"`
	Packager   string   `xml:"packager"`
	Location   Location `xml:"location"`
	Signature  Location `xml:"signature"`
	Platform   string   `xml:"platform"`
}

type RepoMetadata

type RepoMetadata struct {
	Revision string           `xml:"revision"`
	Manifest ManifestMetadata `xml:"data"`
}

type Repository

type Repository struct {
	BaseUrl       string
	SkipGPGVerify bool
	// contains filtered or unexported fields
}

func DefaultRepository

func DefaultRepository() Repository

func (*Repository) Find

func (r *Repository) Find(kernVer string) ([]Module, error)

func (*Repository) Get

func (r *Repository) Get(kernVer string) int

func (*Repository) List

func (r *Repository) List() (Manifest, error)

Jump to

Keyboard shortcuts

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