repo

package
v1.11.0-jeff.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PkgInfo

type PkgInfo struct {
	Name string
	types.Version
	Arch string
}

type PkgMatchFunc

type PkgMatchFunc = func(*PkgInfo) bool

type Repo

type Repo struct {
	SectionName   string
	Name          string
	BaseURL       string
	MirrorList    string
	MetaLink      string
	Type          string
	Enabled       bool
	GpgCheck      bool
	GpgKeys       []string
	SSLVerify     bool
	SSLClientKey  string
	SSLClientCert string
	SSLCaCert     string
}

func ReadFromDir

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

func (*Repo) FetchPackage

func (r *Repo) FetchPackage(pkgMatcher PkgMatchFunc) (*PkgInfo, []byte, error)

func (*Repo) FetchPackagesLists

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

func (*Repo) FetchRepoMD

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

func (*Repo) FetchURL

func (r *Repo) FetchURL(httpClient *http.Client) (string, error)

Jump to

Keyboard shortcuts

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