repository

package
v0.0.0-...-9a1b228 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package repository supports a debian repository according to https://wiki.debian.org/RepositoryFormat

Index

Constants

This section is empty.

Variables

View Source
var ListExtensions = []string{
	".bz2",
	".gz",
	"",
}

Extensions

Functions

This section is empty.

Types

type PackageVisitor

type PackageVisitor func(dist, tag, section, arch, ext string)

PackageWalker can be iterates over all possible positions of packages

type Repository

type Repository struct {
	Sections,
	Archs,
	Dists []string
	Translations []string
	DebMirrorTag string // support local directory layout for debmirror
}

Repository models a debian repository Repository

func New

func New() (*Repository, error)

New inits repository for usage

func (*Repository) ForEachPackageSpec

func (r *Repository) ForEachPackageSpec(v PackageVisitor)

ForEachPackageSpec iterates over all possible positions of packages

func (*Repository) ForEachTranslationSpec

func (r *Repository) ForEachTranslationSpec(v TranslationVisitor)

ForEachTranslationSpec iterates over all possible positions of translations

func (*Repository) KeySets

func (r *Repository) KeySets() map[string][]string

KeySets returns how package lists can be merged They are indexed by the values returned in UniqueKeys

func (*Repository) PackageListNames

func (r *Repository) PackageListNames() (names []string)

PackageListNames lists all possible locations for package lists

func (*Repository) TranslationListNames

func (r *Repository) TranslationListNames() (names []string)

TranslationListNames lists all possible locations for translation lists

func (*Repository) UniqueKeys

func (r *Repository) UniqueKeys() []string

UniqueKeys returns the unqiue package list sets of a repository

type TranslationVisitor

type TranslationVisitor func(dist, tag, section, translation, ext string)

TranslationWalker can be iterates over all possible positions of translations

Jump to

Keyboard shortcuts

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