d

package
v0.0.0-...-0161461 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppVeyorArtifacts

func AppVeyorArtifacts(repo string, x86FileRe, x64FileRe *regexp.Regexp) c.DownloadExtractorFunc

AppVeyorArtifacts returns a download extractor for a AppVeyor artifacts with a deployment name matching the provided regexps. Either regexp can be nil.

The version passed to the extractor must be a valid AppVeyor build version.

func GitHubRelease

func GitHubRelease(repo string, x86FileRe, x64FileRe *regexp.Regexp) c.DownloadExtractorFunc

GitHubRelease returns a download extractor for a GitHub release. x64Re can be nil.

func HTML

func HTML(url string, x86Selector, x64Selector, x86Attr, x64Attr string, x86FileRe, x64FileRe *regexp.Regexp) c.DownloadExtractorFunc

HTML returns a download extractor for the first match of a css selector, an attribute (or innerText for the text), and an optional regexp on the url (and resolves the url). If a match fails, the next one (if any) is tried. {{.Version}} is replaced with the current version.

func HTMLA

func HTMLA(url, x86Selector, x64Selector string) c.DownloadExtractorFunc

HTMLA is a shorthand version of HTML for selecting a link with a href attribute without a regex. Leave the x64 selector blank if no 64-bit version.

func Regexp

func Regexp(url string, x86FileRe, x64FileRe *regexp.Regexp) c.DownloadExtractorFunc

Regexp returns a version extractor for the first match of a regex (and resolves the url).

func Template

func Template(x86Tmpl, x64Tmpl string) c.DownloadExtractorFunc

Template creates a download link based on substituting {{.Version}}. Leave a template empty if no link for that version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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