kde

package
v0.0.0-...-1e56917 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ListingPrefix is the prefix of all paths in the KDE listing that is hidden by HTTP
	ListingPrefix = "/srv/archives/ftp/"
	// SourceFormat3 is the string format for KDE sources with 3 pieces
	SourceFormat3 = "https://download.kde.org/%s/%s/%s-%s.tar.xz"
	// SourceFormat4 is the string format for KDE sources with 4 pieces
	SourceFormat4 = "https://download.kde.org/%s/%s/%s/%s-%s.tar.xz"
	// SourceFormat5 is the string format for KDE sources with 5 pieces
	SourceFormat5 = "https://download.kde.org/%s/%s/%s/%s/%s-%s.tar.xz"
	// SourceFormat6 is the string format for KDE sources with 6 pieces
	SourceFormat6 = "https://download.kde.org/%s/%s/%s/%s/%s/%s-%s.tar.xz"
)
View Source
const ListingURL = "https://download.kde.org/ls-lR.bz2"

Variables

View Source
var TarballRegex = regexp.MustCompile("https?://.*download.kde.org/(.+)")

TarballRegex matches KDE sources

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider is the upstream provider interface for KDE

func (Provider) Latest

func (c Provider) Latest(params []string) (r *results.Result, err error)

Latest finds the newest release for a KDE package

func (Provider) Match

func (c Provider) Match(query string) (params []string)

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

func (Provider) Releases

func (c Provider) Releases(params []string) (rs *results.ResultSet, err error)

Releases finds all matching releases for a KDE package

func (Provider) String

func (c Provider) String() string

String gives the name of this provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳