|
libzypp 17.31.32
|
Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk. More...
#include <repo/yum/Downloader.h>

Classes | |
| class | Impl |
| Helper filtering the files offered by a RepomdFileReader. More... | |
Public Member Functions | |
| Downloader (const RepoInfo &info_r, const Pathname &deltaDir_r=Pathname()) | |
| Constructor from the repository information. | |
| void | download (MediaSetAccess &media_r, const Pathname &destDir_r, const ProgressData::ReceiverFnc &progress_r=ProgressData::ReceiverFnc()) override |
| Download metadata to a local directory. | |
| RepoStatus | status (MediaSetAccess &media_r) override |
| Status of the remote repository. | |
Public Member Functions inherited from zypp::repo::Downloader | |
| Downloader () | |
| Constructor. | |
| Downloader (const RepoInfo &info) | |
| C-tor associating the downloader with a RepoInfo. | |
| virtual | ~Downloader () |
| const RepoInfo & | repoInfo () const |
| void | setPluginRepoverification (std::optional< PluginRepoverification > pluginRepoverification_r) |
| void | setNoPluginRepoverification () |
Public Member Functions inherited from zypp::Fetcher | |
| ZYPP_DECLARE_FLAGS (Options, Option) | |
| Fetcher () | |
| Default ctor. | |
| virtual | ~Fetcher () |
| Dtor. | |
| void | setOptions (Options options) |
| Set the Fetcher options. | |
| Options | options () const |
| Get current options. | |
| void | addIndex (const OnMediaLocation &resource) |
| Adds an index containing metadata (for example checksums ) that will be retrieved and read before the job processing starts. | |
| void | enqueue (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| Enqueue a object for transferal, they will not be transferred until start() is called. | |
| void | enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| Enqueue a object for transferal, they will not be transferred until start() is called. | |
| ZYPP_DEPRECATED void | enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker, const Pathname &deltafile) |
| void | enqueueDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory. | |
| void | enqueueDigestedDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory and always check for checksums. | |
| void | addCachePath (const Pathname &cache_dir) |
| adds a directory to the list of directories where to look for cached files | |
| void | reset () |
| Reset the transfer (jobs) list. | |
| void | setMediaSetAccess (MediaSetAccess &media) |
| Sets the media set access that will be used to precache and to download the files when start is called. | |
| void | start (const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
| start the transfer to a destination directory dest_dir The media has to be provides with setMediaSetAccess before calling this version of start. | |
| void | start (const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
| start the transfer to a destination directory dest_dir You have to provde a media set access media to get the files from The file tree will be replicated inside this directory | |
Private Attributes | |
| Pathname | _deltaDir |
Friends | |
| class | Impl |
Additional Inherited Members | |
Public Types inherited from zypp::Fetcher | |
| enum | Option { AutoAddContentFileIndexes = 0x0001 , AutoAddChecksumsIndexes = 0x0002 , AutoAddIndexes = AutoAddContentFileIndexes | AutoAddChecksumsIndexes } |
| Various option flags to change behavior. More... | |
Protected Member Functions inherited from zypp::repo::Downloader | |
| void | defaultDownloadMasterIndex (MediaSetAccess &media_r, const Pathname &destdir_r, const Pathname &masterIndex_r) |
| Common workflow downloading a (signed) master index file. | |
Related Symbols inherited from zypp::Fetcher | |
| std::ostream & | operator<< (std::ostream &str, const Fetcher &obj) |
| Stream output. | |
Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk.
Definition at line 40 of file Downloader.h.
| zypp::repo::yum::Downloader::Downloader | ( | const RepoInfo & | info_r, |
| const Pathname & | deltaDir_r = Pathname() ) |
Constructor from the repository information.
The repository information allows more context to be given to the user when something fails.
| info | Repository information |
Definition at line 204 of file Downloader.cc.
|
overridevirtual |
Download metadata to a local directory.
| media | Media access to the repository url |
| destDir | Local destination directory |
| progress | progress receiver |
Reimplemented from zypp::repo::Downloader.
Definition at line 209 of file Downloader.cc.
|
overridevirtual |
Status of the remote repository.
Reimplemented from zypp::repo::Downloader.
Definition at line 228 of file Downloader.cc.
Definition at line 72 of file Downloader.h.
|
private |
Definition at line 73 of file Downloader.h.