Documentation
¶
Index ¶
- Constants
- type PkgHandler
- type PkgInfo
- type PkgInfoHeader
- type PkgMatchFunc
- type Repo
- func (r *Repo) FetchPackage(ctx context.Context, pkgMatcher PkgMatchFunc) (*PkgInfo, []byte, error)
- func (r *Repo) FetchPackageFromList(ctx context.Context, httpClient *utils.HttpClient, repoMd *types.Repomd, ...) (*PkgInfo, error)
- func (r *Repo) FetchRepoMD(ctx context.Context, httpClient *utils.HttpClient) (*types.Repomd, error)
- func (r *Repo) FetchURL(ctx context.Context, httpClient *utils.HttpClient) (string, error)
- type TempPkgInfo
- type TempProvides
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 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 (*Repo) FetchPackage ¶
func (*Repo) FetchPackageFromList ¶
func (r *Repo) FetchPackageFromList(ctx context.Context, httpClient *utils.HttpClient, repoMd *types.Repomd, pkgMatcher PkgMatchFunc) (*PkgInfo, error)
func (*Repo) FetchRepoMD ¶
type TempPkgInfo ¶
type TempPkgInfo struct {
// contains filtered or unexported fields
}
type TempProvides ¶
type TempProvides struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.