|
libzypp 17.38.5
|
Fetcher implementation. More...
Classes | |
| struct | CacheInfo |
Public Member Functions | |
| Impl () | |
| Impl (const Impl &)=default | |
| Impl (Impl &&)=delete | |
| Impl & | operator= (const Impl &)=delete |
| Impl & | operator= (Impl &&)=delete |
| ~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()) |
| void | addCachePath (const Pathname &cache_dir, Fetcher::CacheOptions options) |
| 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) |
Static Public Member Functions | |
| static shared_ptr< Impl > | nullimpl () |
| Offer default Impl. | |
Private Member Functions | |
| void | downloadAndReadIndexList (MediaSetAccess &media, const Pathname &dest_dir) |
| download the indexes and reads them | |
| void | downloadIndex (MediaSetAccess &media, const OnMediaLocation &resource, const Pathname &dest_dir) |
| download the indexes and reads them | |
| void | readIndex (const Pathname &index, const Pathname &basedir) |
| reads a downloaded index file and updates internal attributes table | |
| void | readChecksumsIndex (const Pathname &index, const Pathname &basedir) |
| specific version of readIndex for CHECKSUMS file | |
| void | readContentFileIndex (const Pathname &index, const Pathname &basedir) |
| specific version of readIndex for content file | |
| void | getDirectoryContent (MediaSetAccess &media, const OnMediaLocation &resource, filesystem::DirContent &content) |
| reads the content of a directory but keeps a cache | |
| ManagedFile | locateInCache (const OnMediaLocation &resource_r, const Pathname &destDir_r, const Pathname &inCachePath_r) |
| Tries to locate the file represented by the job by looking at it's final destination first and at then the caches (matching checksum is mandatory). | |
| void | validate (const Pathname &localfile_r, const std::list< FileChecker > &checkers_r) |
| Validates the provided file against its checkers. | |
| void | addDirJobs (MediaSetAccess &media, const OnMediaLocation &resource, const Pathname &dest_dir, FetcherJob::Flags flags) |
| scan the directory and adds the individual jobs | |
| void | autoaddIndexes (const filesystem::DirContent &content, MediaSetAccess &media, const OnMediaLocation &resource, const Pathname &dest_dir) |
| auto discovery and reading of indexes | |
| void | provideToDest (MediaSetAccess &media_r, const Pathname &destDir_r, const FetcherJob_Ptr &jobp_r) |
| Provide the resource to dest_dir. | |
| Impl * | clone () const |
| clone for RWCOW_pointer | |
Private Attributes | |
| std::list< FetcherJob_Ptr > | _resources |
| std::set< FetcherIndex_Ptr, SameFetcherIndex > | _indexes |
| std::set< CacheInfo > | _caches |
| std::map< std::string, CheckSum > | _checksums |
| std::map< std::string, filesystem::DirContent > | _dircontent |
| MediaSetAccess * | _mediaSetAccess = nullptr |
| Fetcher::Options | _options |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const Fetcher::Impl &obj) |
| Impl * | rwcowClone (const Impl *rhs) |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &str, const Fetcher::Impl &obj) |
| Stream output. | |
Fetcher implementation.
Definition at line 175 of file Fetcher.cc.
| zypp::Fetcher::Impl::Impl | ( | ) |
Definition at line 314 of file Fetcher.cc.
|
default |
|
delete |
|
inline |
Definition at line 187 of file Fetcher.cc.
| void zypp::Fetcher::Impl::setOptions | ( | Fetcher::Options | options | ) |
Definition at line 319 of file Fetcher.cc.
| Fetcher::Options zypp::Fetcher::Impl::options | ( | ) | const |
Definition at line 322 of file Fetcher.cc.
| void zypp::Fetcher::Impl::addIndex | ( | const OnMediaLocation & | resource | ) |
Definition at line 369 of file Fetcher.cc.
| void zypp::Fetcher::Impl::enqueueDir | ( | const OnMediaLocation & | resource, |
| bool | recursive, | ||
| const FileChecker & | checker = FileChecker() ) |
Definition at line 325 of file Fetcher.cc.
| void zypp::Fetcher::Impl::enqueueDigestedDir | ( | const OnMediaLocation & | resource, |
| bool | recursive, | ||
| const FileChecker & | checker = FileChecker() ) |
Definition at line 340 of file Fetcher.cc.
| void zypp::Fetcher::Impl::enqueue | ( | const OnMediaLocation & | resource, |
| const FileChecker & | checker = FileChecker() ) |
Definition at line 357 of file Fetcher.cc.
| void zypp::Fetcher::Impl::enqueueDigested | ( | const OnMediaLocation & | resource, |
| const FileChecker & | checker = FileChecker() ) |
Definition at line 303 of file Fetcher.cc.
| void zypp::Fetcher::Impl::addCachePath | ( | const Pathname & | cache_dir, |
| Fetcher::CacheOptions | options ) |
Definition at line 389 of file Fetcher.cc.
| void zypp::Fetcher::Impl::reset | ( | ) |
Definition at line 376 of file Fetcher.cc.
| void zypp::Fetcher::Impl::setMediaSetAccess | ( | MediaSetAccess & | media | ) |
Definition at line 384 of file Fetcher.cc.
| void zypp::Fetcher::Impl::start | ( | const Pathname & | dest_dir, |
| const ProgressData::ReceiverFnc & | progress ) |
Definition at line 794 of file Fetcher.cc.
| void zypp::Fetcher::Impl::start | ( | const Pathname & | dest_dir, |
| MediaSetAccess & | media, | ||
| const ProgressData::ReceiverFnc & | progress_receiver ) |
Definition at line 804 of file Fetcher.cc.
|
inlinestatic |
Offer default Impl.
Definition at line 218 of file Fetcher.cc.
|
private |
download the indexes and reads them
Definition at line 764 of file Fetcher.cc.
|
private |
download the indexes and reads them
Definition at line 709 of file Fetcher.cc.
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 656 of file Fetcher.cc.
|
private |
specific version of readIndex for CHECKSUMS file
Definition at line 680 of file Fetcher.cc.
|
private |
specific version of readIndex for content file
Definition at line 667 of file Fetcher.cc.
|
private |
reads the content of a directory but keeps a cache
Definition at line 496 of file Fetcher.cc.
|
private |
Tries to locate the file represented by the job by looking at it's final destination first and at then the caches (matching checksum is mandatory).
Returns the location of the file found or an empty Pathname.
Definition at line 412 of file Fetcher.cc.
|
private |
Validates the provided file against its checkers.
| Exception |
Definition at line 439 of file Fetcher.cc.
|
private |
scan the directory and adds the individual jobs
Definition at line 519 of file Fetcher.cc.
|
private |
auto discovery and reading of indexes
Definition at line 468 of file Fetcher.cc.
|
private |
Provide the resource to dest_dir.
Definition at line 583 of file Fetcher.cc.
|
inlineprivate |
clone for RWCOW_pointer
Definition at line 286 of file Fetcher.cc.
|
friend |
|
Stream output.
Definition at line 895 of file Fetcher.cc.
|
private |
Definition at line 289 of file Fetcher.cc.
|
private |
Definition at line 290 of file Fetcher.cc.
|
private |
Definition at line 291 of file Fetcher.cc.
|
private |
Definition at line 293 of file Fetcher.cc.
|
private |
Definition at line 295 of file Fetcher.cc.
|
private |
Definition at line 297 of file Fetcher.cc.
|
private |
Definition at line 299 of file Fetcher.cc.