overrides

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOpts = &Opts{
	Overrides:   true,
	LikeDistros: true,
	Languages:   []string{"en"},
}

Functions

func Resolve

func Resolve(info *distro.OSRelease, opts *Opts) ([]string, error)

Resolve generates a slice of possible override names in the order that they should be checked

Types

type Opts

type Opts struct {
	Name         string
	Overrides    bool
	LikeDistros  bool
	Languages    []string
	LanguageTags []language.Tag
}

func (*Opts) WithLanguageTags added in v0.0.7

func (o *Opts) WithLanguageTags(langs []string) *Opts

func (*Opts) WithLanguages added in v0.0.7

func (o *Opts) WithLanguages(langs []string) *Opts

func (*Opts) WithLikeDistros

func (o *Opts) WithLikeDistros(v bool) *Opts

func (*Opts) WithName

func (o *Opts) WithName(name string) *Opts

func (*Opts) WithOverrides

func (o *Opts) WithOverrides(v bool) *Opts

type ResolvedPackage added in v0.0.7

type ResolvedPackage struct {
	Name          string   `sh:"name"`
	Version       string   `sh:"version"`
	Release       int      `sh:"release"`
	Epoch         uint     `sh:"epoch"`
	Description   string   `db:"description"`
	Homepage      string   `db:"homepage"`
	Maintainer    string   `db:"maintainer"`
	Architectures []string `sh:"architectures"`
	Licenses      []string `sh:"license"`
	Provides      []string `sh:"provides"`
	Conflicts     []string `sh:"conflicts"`
	Replaces      []string `sh:"replaces"`
	Depends       []string `sh:"deps"`
	BuildDepends  []string `sh:"build_deps"`
}

ResolvedPackage is a LURE package after its overrides have been resolved

func ResolvePackage added in v0.0.7

func ResolvePackage(pkg *db.Package, overrides []string) *ResolvedPackage

Jump to

Keyboard shortcuts

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