gnu

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MirrorsFTP is the host to use as a GNU mirror
	MirrorsFTP = "mirrors.rit.edu:21"
	// GNUFormat is the format string for GNU sources
	GNUFormat = "https://mirrors.rit.edu/gnu/%s/%s"
)

Variables

View Source
var MirrorsRegex = regexp.MustCompile("(?:https?|ftp)://[^\\/]+/gnu/(.+)/[^\\/]+$")

MirrorsRegex is a regex for a GNU mirror source

View Source
var TarballRegex = regexp.MustCompile("^(.+)-(.+)\\.tar\\..+z$")

TarballRegex is a regex for finding tarball files

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider is the upstream provider interface for GNU

func (Provider) Latest

func (c Provider) Latest(name string) (r *results.Result, s results.Status)

Latest finds the newest release for a GNU package

func (Provider) Match

func (c Provider) Match(query string) string

Match checks to see if this provider can handle this kind of query

func (Provider) Name

func (c Provider) Name() string

Name gives the name of this provider

func (Provider) Releases

func (c Provider) Releases(name string) (rs *results.ResultSet, s results.Status)

Releases finds all matching releases for a GNU package

Jump to

Keyboard shortcuts

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