modulepackage
0.0.0-20200912011324-7149510a39c7
Repository: https://github.com/paultag/go-archive.git
Documentation: pkg.go.dev
# README
go-archive
go-archive
are a set of non-production test bindings to work with a
Debian archive.
# Functions
CachedRelease returns DefaultDownloader.Release(suite), caching releases for the duration of the process.
Given an InRelease io.Reader, and the OpenPGP keyring to validate against, return the parsed InRelease file.
Given a path to the InRelease file on the filesystem, and the OpenPGP keyring to validate against, return the parsed InRelease file.
No description provided by the author
Given an io.Reader, create a Packages iterator.
Given a path, create a Packages iterator.
No description provided by the author
Given an io.Reader, create a Sources iterator.
Given a path, create a Sources iterator.
Create a new Archive at the given `root` on the filesystem, with the openpgp.Entity `signer` (an Entity which contains an OpenPGP Private Key).
Create a Package entry from a deb.Deb file.
No description provided by the author
No description provided by the author
No description provided by the author
TempFile expects a path starting with dists/<suite>, calls Release(suite), looks up the remaining path within the release and calls TempFile on the corresponding ReleaseDownloader.
# Constants
DebianArchiveKeyring is the full path to the GPG keyring containing the public keys used for signing the Debian archive.
# Variables
DefaultDownloader is a ready-to-use Downloader, used by convenience wrappers such as CachedRelease and, by extension, TempFile.
# Structs
Core Archive abstrcation.
Small wrapper to represent a Component of a Suite, which, at its core is simply a set of Indexes to be written to.
Downloader makes files from the Debian archive available.
This writer represents a Package list - which is to say, a list of binary .deb files, for a particular Architecture, in a particular Component in a particular Suite, in a particular Archive.
Binary .deb Package entry, as it exists in the Packages file, which contains the .deb Control information, as well as information on where the file lives, the file size, and some hashes.
Iterator to access the entries contained in the Packages entry in an apt repo.
No description provided by the author
The file "dists/$DIST/InRelease" shall contain meta-information about the distribution and checksums for the indices, possibly signed with a GPG clearsign signature (for example created by "gpg -a -s --clearsign").
ReleaseDownloader is like Downloader, but for a specific release (e.g.
The files dists/$DIST/$COMP/source/Sources are called Sources indices.
No description provided by the author
No description provided by the author
Abstraction to handle writing data into a Suite.
# Type aliases
This is a set of file changes ready to be passed to `Link` to link in.
No description provided by the author
No description provided by the author