link

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldZIP          = "ZIP"
	FieldZIPMirrors   = "ZIPMirrors"
	FieldMD5          = "MD5"
	FieldVersionInfo  = "VersionInfo"
	FieldSourceReport = "SourceReport"
)

Public consts

Variables

View Source
var TemplateMap = map[string]string{
	FieldZIP:          pkgTemplate + zipExtension,
	FieldZIPMirrors:   pkgTemplate + zipExtension,
	FieldMD5:          pkgTemplate + md5Extension,
	FieldVersionInfo:  pkgTemplate + logExtension,
	FieldSourceReport: reportTemplate,
}

TemplateMap holds format templates

Functions

func New

func New(field, date string, p gapps.Platform, a gapps.Android, v gapps.Variant) string

New returns a download link per provided parameters

Types

type LatestRelease

type LatestRelease struct {
	Arch   string         `json:"arch"`
	Date   string         `json:"date"`
	Assets []ReleaseAsset `json:"assets"`
}

LatestRelease describes the latest gapps release

func GetLatestRelease

func GetLatestRelease(ctx context.Context, gh *github.Client, arch gapps.Platform) (*LatestRelease, error)

GetLatestRelease returns the latest release info for the selected architecture

type ReleaseAsset

type ReleaseAsset struct {
	API      string   `json:"api"`
	Variants []string `json:"variants"`
}

ReleaseAsset describes the gapps release for API and its available variants

Jump to

Keyboard shortcuts

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