repo

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Start parseState = iota
	InPackage
	InArch
	InLocation
	InFormat
	InProvides
	InEntry
	InChecksum
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PkgHandler

type PkgHandler struct {
	// contains filtered or unexported fields
}

func (*PkgHandler) Attr

func (ph *PkgHandler) Attr(name, value []byte)

func (*PkgHandler) CharData

func (ph *PkgHandler) CharData(value []byte)

func (*PkgHandler) EndTag

func (ph *PkgHandler) EndTag(name []byte)

func (*PkgHandler) StartTag

func (ph *PkgHandler) StartTag(name []byte)

type PkgInfo

type PkgInfo struct {
	Header   PkgInfoHeader
	Location string
	Checksum *types.Checksum
}

type PkgInfoHeader

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

type PkgMatchFunc

type PkgMatchFunc = func(*PkgInfoHeader) 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(ctx context.Context, pkgMatcher PkgMatchFunc) (*PkgInfo, []byte, error)

func (*Repo) FetchPackageFromList

func (r *Repo) FetchPackageFromList(ctx context.Context, httpClient *utils.HttpClient, repoMd *types.Repomd, pkgMatcher PkgMatchFunc) (*PkgInfo, error)

func (*Repo) FetchRepoMD

func (r *Repo) FetchRepoMD(ctx context.Context, httpClient *utils.HttpClient) (*types.Repomd, error)

func (*Repo) FetchURL

func (r *Repo) FetchURL(ctx context.Context, httpClient *utils.HttpClient) (string, error)

type TempPkgInfo

type TempPkgInfo struct {
	// contains filtered or unexported fields
}

type TempProvides

type TempProvides struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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