Documentation ¶
Index ¶
- type ExtraMetadataFilter
- type PackageFilter
- type Syncer
- func (s *Syncer) DownloadMetadata(ctx context.Context, extraMetadataFilterFn ExtraMetadataFilter) <-chan int
- func (s *Syncer) DownloadPackages(ctx context.Context, packageFilterFn PackageFilter) (<-chan string, int)
- func (s *Syncer) Err() error
- func (s *Syncer) FileReader(ctx context.Context, path string) (io.ReadCloser, error)
- func (s *Syncer) RepomdData(index int) *yummeta.RepoMdData
- func (s *Syncer) RepomdXML() io.Reader
- func (s *Syncer) RepomdXMLSignature() io.Reader
- type SyncerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraMetadataFilter ¶
type PackageFilter ¶
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
func NewSyncer ¶
func NewSyncer(downloadDir string, mirrorURLs []*url.URL, options ...SyncerOption) *Syncer
func (*Syncer) DownloadMetadata ¶ added in v0.0.6
func (s *Syncer) DownloadMetadata(ctx context.Context, extraMetadataFilterFn ExtraMetadataFilter) <-chan int
func (*Syncer) DownloadPackages ¶
func (*Syncer) FileReader ¶
func (*Syncer) RepomdData ¶
func (s *Syncer) RepomdData(index int) *yummeta.RepoMdData
func (*Syncer) RepomdXMLSignature ¶ added in v0.0.6
type SyncerOption ¶
type SyncerOption func(*Syncer)
func WithKeyring ¶ added in v0.0.6
func WithKeyring(keyring openpgp.KeyRing) SyncerOption
func WithProxyURL ¶
func WithProxyURL(proxy *url.URL, httpsProxy bool) SyncerOption
func WithTLSConfig ¶
func WithTLSConfig(tlsConfig *tls.Config) SyncerOption
Click to show internal directories.
Click to hide internal directories.