repository

package
v0.0.0-...-3ed38a9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadArchive

func DownloadArchive(url string, path string, hash string) error

Types

type Archive

type Archive struct {
	HostOs   string          `xml:"host-os"`
	HostArch string          `xml:"host-arch"`
	Complete ArchiveComplete `xml:"complete"`
}

type ArchiveComplete

type ArchiveComplete struct {
	Size     int    `xml:"size"`
	Checksum string `xml:"checksum"`
	Url      string `xml:"url"`
}

type Archives

type Archives struct {
	Archive []Archive `xml:"archive"`
}

type ChannelRef

type ChannelRef struct {
	Ref string `xml:"ref,attr"`
}

type Manifest

type Manifest struct {
	RemotePackages []RemotePackage `xml:"remotePackage"`
}

func GetManifest

func GetManifest(url string) (*Manifest, error)

type RemotePackage

type RemotePackage struct {
	Path        string      `xml:"path,attr"`
	DisplayName string      `xml:"display-name"`
	Revision    Revision    `xml:"revision"`
	TypeDetails TypeDetails `xml:"type-details"`
	ChannelRef  ChannelRef  `xml:"channelRef"`
	Archives    Archives    `xml:"archives"`
}

type Revision

type Revision struct {
	Major int `xml:"major"`
}

type TypeDetail

type TypeDetail struct {
	Id      string `xml:"id"`
	Display string `xml:"display"`
}

type TypeDetails

type TypeDetails struct {
	ApiLevel string     `xml:"api-level"`
	Tag      TypeDetail `xml:"tag"`
	Vendor   TypeDetail `xml:"vendor"`
	Abi      string     `xml:"abi"`
}

Jump to

Keyboard shortcuts

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