distro

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	X86_64Arch Arch = "x86_64"

	// Default architecture for which scrape for packages.
	DefaultArch = X86_64Arch
	CentosType  = "centos"
)

Variables

View Source
var (
	ErrDistroNotConfigured      = errors.New("the distro has not been configured")
	ErrDistroNotFound           = errors.New("no distribution found with the specified name")
	ErrNoDistroVersionSpecified = errors.New("no versions specified")
	ErrDomainsFromMirrorUrls    = errors.New("error while retrieving DNS names from mirrors URLs")
)

Functions

func RepositorySliceContains added in v0.2.0

func RepositorySliceContains(s []packages.Repository, e packages.Repository) bool

Types

type Arch

type Arch string

type Config

type Config struct {
	// A list of Mirrors to scrape.
	Mirrors []packages.Mirror

	// The mirrored repositories.
	Repositories []packages.Repository

	// A list of architecture for to which scrape packages.
	Archs []Arch

	// A list of Distro versions.
	Versions []Version
}

type Distro

type Distro interface {
	// Configure expects distro.Config and arbitrary variables
	// for config fields that support templating.
	Configure(Config, map[string]interface{}) error

	// GetPackages should return a slice of Package based on
	// the provided Filter-type filter.
	GetPackages(packages.Filter) ([]packages.Package, error)
}

type Type

type Type string

type Version

type Version string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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