repo

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PkgMatchFunc

type PkgMatchFunc = func(*types.Package) bool

type Repo

type Repo struct {
	SectionName string
	Name        string
	BaseURL     string
	MirrorList  string
	MetaLink    string
	Enabled     bool
	GpgCheck    bool
	GpgKey      string
}

func ReadFromDir

func ReadFromDir(repoDir string) ([]Repo, error)

func (*Repo) FetchPackage

func (r *Repo) FetchPackage(pkgMatcher PkgMatchFunc) (*types.Package, []byte, error)

func (*Repo) FetchPackagesLists

func (r *Repo) FetchPackagesLists(repoMd *types.Repomd) ([]*types.Package, error)

func (*Repo) FetchRepoMD

func (r *Repo) FetchRepoMD() (*types.Repomd, error)

func (*Repo) FetchURL

func (r *Repo) FetchURL() (string, error)

Jump to

Keyboard shortcuts

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