Fetcher implementation.
More...
|
| | Impl () |
| |
| | ~Impl () |
| |
| void | setOptions (Fetcher::Options options) |
| |
| Fetcher::Options | options () const |
| |
| void | addIndex (const OnMediaLocation &resource) |
| |
| void | enqueueDir (const OnMediaLocation &resource, bool recursive, const FileChecker &checker=FileChecker()) |
| |
| void | enqueueDigestedDir (const OnMediaLocation &resource, bool recursive, const FileChecker &checker=FileChecker()) |
| |
| void | enqueue (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| |
| void | enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker=FileChecker(), const Pathname &deltafile=Pathname()) |
| |
| void | addCachePath (const Pathname &cache_dir) |
| |
| void | reset () |
| |
| void | setMediaSetAccess (MediaSetAccess &media) |
| |
| void | start (const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress) |
| |
| void | start (const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progress_receiver) |
| |
|
| void | downloadAndReadIndexList (MediaSetAccess &media, const Pathname &dest_dir) |
| | download the indexes and reads them More...
|
| |
| void | downloadIndex (MediaSetAccess &media, const OnMediaLocation &resource, const Pathname &dest_dir) |
| | download the indexes and reads them More...
|
| |
| void | readIndex (const Pathname &index, const Pathname &basedir) |
| | reads a downloaded index file and updates internal attributes table More...
|
| |
| void | readChecksumsIndex (const Pathname &index, const Pathname &basedir) |
| | specific version of readIndex for CHECKSUMS file More...
|
| |
| void | readContentFileIndex (const Pathname &index, const Pathname &basedir) |
| | specific version of readIndex for content file More...
|
| |
| void | getDirectoryContent (MediaSetAccess &media, const OnMediaLocation &resource, filesystem::DirContent &content) |
| | reads the content of a directory but keeps a cache More...
|
| |
| Pathname | locateInCache (const OnMediaLocation &resource_r, const Pathname &destDir_r) |
| | Tries to locate the file represented by job by looking at the cache (matching checksum is mandatory). More...
|
| |
| void | validate (const Pathname &localfile_r, const std::list< FileChecker > &checkers_r) |
| | Validates the provided file against its checkers. More...
|
| |
| void | addDirJobs (MediaSetAccess &media, const OnMediaLocation &resource, const Pathname &dest_dir, FetcherJob::Flags flags) |
| | scan the directory and adds the individual jobs More...
|
| |
| void | autoaddIndexes (const filesystem::DirContent &content, MediaSetAccess &media, const OnMediaLocation &resource, const Pathname &dest_dir) |
| | auto discovery and reading of indexes More...
|
| |
| void | provideToDest (MediaSetAccess &media_r, const Pathname &destDir_r, const FetcherJob_Ptr &jobp_r) |
| | Provide the resource to dest_dir. More...
|
| |
| Impl * | clone () const |
| | clone for RWCOW_pointer More...
|
| |
|
(Note that these are not member functions.)
|
| std::ostream & | operator<< (std::ostream &str, const Fetcher::Impl &obj) |
| |
Fetcher implementation.
Definition at line 126 of file Fetcher.cc.
◆ Impl()
| zypp::Fetcher::Impl::Impl |
( |
| ) |
|
◆ ~Impl()
| zypp::Fetcher::Impl::~Impl |
( |
| ) |
|
|
inline |
◆ setOptions()
| void zypp::Fetcher::Impl::setOptions |
( |
Fetcher::Options |
options | ) |
|
◆ options()
| Fetcher::Options zypp::Fetcher::Impl::options |
( |
| ) |
const |
◆ addIndex()
◆ enqueueDir()
◆ enqueueDigestedDir()
◆ enqueue()
◆ enqueueDigested()
◆ addCachePath()
| void zypp::Fetcher::Impl::addCachePath |
( |
const Pathname & |
cache_dir | ) |
|
◆ reset()
| void zypp::Fetcher::Impl::reset |
( |
| ) |
|
◆ setMediaSetAccess()
◆ start() [1/2]
◆ start() [2/2]
◆ nullimpl()
◆ downloadAndReadIndexList()
download the indexes and reads them
Definition at line 700 of file Fetcher.cc.
◆ downloadIndex()
download the indexes and reads them
Definition at line 645 of file Fetcher.cc.
◆ readIndex()
| void zypp::Fetcher::Impl::readIndex |
( |
const Pathname & |
index, |
|
|
const Pathname & |
basedir |
|
) |
| |
|
private |
reads a downloaded index file and updates internal attributes table
The index lists files relative to a directory, which is normally the same as the index file is located.
Definition at line 592 of file Fetcher.cc.
◆ readChecksumsIndex()
| void zypp::Fetcher::Impl::readChecksumsIndex |
( |
const Pathname & |
index, |
|
|
const Pathname & |
basedir |
|
) |
| |
|
private |
◆ readContentFileIndex()
| void zypp::Fetcher::Impl::readContentFileIndex |
( |
const Pathname & |
index, |
|
|
const Pathname & |
basedir |
|
) |
| |
|
private |
◆ getDirectoryContent()
reads the content of a directory but keeps a cache
Definition at line 435 of file Fetcher.cc.
◆ locateInCache()
Tries to locate the file represented by job by looking at the cache (matching checksum is mandatory).
Returns the location of the cached file or an empty Pathname.
Definition at line 348 of file Fetcher.cc.
◆ validate()
| void zypp::Fetcher::Impl::validate |
( |
const Pathname & |
localfile_r, |
|
|
const std::list< FileChecker > & |
checkers_r |
|
) |
| |
|
private |
Validates the provided file against its checkers.
- Exceptions
-
Definition at line 378 of file Fetcher.cc.
◆ addDirJobs()
scan the directory and adds the individual jobs
Definition at line 458 of file Fetcher.cc.
◆ autoaddIndexes()
auto discovery and reading of indexes
Definition at line 407 of file Fetcher.cc.
◆ provideToDest()
Provide the resource to dest_dir.
Definition at line 522 of file Fetcher.cc.
◆ clone()
| Impl* zypp::Fetcher::Impl::clone |
( |
| ) |
const |
|
inlineprivate |
◆ operator<< [1/2]
| std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const Fetcher::Impl & |
obj |
|
) |
| |
|
friend |
◆ rwcowClone
◆ operator<<() [2/2]
| std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const Fetcher::Impl & |
obj |
|
) |
| |
|
related |
◆ _resources
◆ _indexes
◆ _caches
| std::set<Pathname> zypp::Fetcher::Impl::_caches |
|
private |
◆ _checksums
| std::map<std::string, CheckSum> zypp::Fetcher::Impl::_checksums |
|
private |
◆ _dircontent
◆ _mediaSetAccess
◆ _options
| Fetcher::Options zypp::Fetcher::Impl::_options |
|
private |
The documentation for this class was generated from the following file: