CPAN

package module
v0.0.0-...-c78db6e Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoData = errors.New("no data")
	ErrSyntax = errors.New("syntax error")
)
View Source
var PAUSEKeyRing openpgp.KeyRing

PAUSEKeyRing contains the embeded public keys of the central PAUSE indexer

View Source
var ReadPackagesIndexBufferSize int = 4096

Functions

func ReadCheckSums

func ReadCheckSums(r io.Reader, keyring openpgp.KeyRing) (map[string]CheckSum, error)

ReadCheckSums loads the content of a CHECKSUMS file. The PGP signature is verified.

func ReadPackagesIndex

func ReadPackagesIndex(r io.Reader) (
	header map[string][]string,
	entries <-chan *PackagesIndexEntry,
	done chan error,
)

Types

type CheckSum

type CheckSum struct {
	MD5    string `json:"md5"`
	MTime  string `json:"mtime"`
	Sha256 string `json:"sha256"`
	Size   int    `json:"size"`
	IsDir  int    `json:"isdir"`
}

type PackagesIndexEntry

type PackagesIndexEntry struct {
	Package string `json:"package"`
	Version string `json:"version"`
	Path    string `json:"path"`
}

Directories

Path Synopsis
cmd
index-json
An example of CPAN.ReadIndex(): converts a 02packages.tar.gz to JSON.
An example of CPAN.ReadIndex(): converts a 02packages.tar.gz to JSON.

Jump to

Keyboard shortcuts

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