#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/ng/provide.h>
|
AsyncOpRef< expected< MediaHandle > > | attachMedia (const std::vector< zypp::Url > &urls, const ProvideMediaSpec &request) |
|
AsyncOpRef< expected< MediaHandle > > | attachMedia (const zypp::Url &url, const ProvideMediaSpec &request) |
|
AsyncOpRef< expected< ProvideRes > > | provide (const std::vector< zypp::Url > &urls, const ProvideFileSpec &request) |
|
AsyncOpRef< expected< ProvideRes > > | provide (const zypp::Url &url, const ProvideFileSpec &request) |
|
AsyncOpRef< expected< ProvideRes > > | provide (const MediaHandle &attachHandle, const zypp::Pathname &fileName, const ProvideFileSpec &request) |
|
AsyncOpRef< expected< std::string > > | checksumForFile (const zypp::Pathname &p, const std::string &algorithm) |
|
AsyncOpRef< expected< zypp::ManagedFile > > | copyFile (const zypp::Pathname &source, const zypp::Pathname &target) |
|
void | start () |
|
void | setWorkerPath (const zypp::Pathname &path) |
|
bool | isRunning () const |
|
bool | ejectDevice (const std::string &queueRef, const std::string &device) |
|
void | setStatusTracker (ProvideStatusRef tracker) |
|
const zypp::Pathname & | providerWorkdir () const |
|
const zypp::media::CredManagerOptions & | credManangerOptions () const |
|
void | setCredManagerOptions (const zypp::media::CredManagerOptions &opt) |
|
SignalProxy< void()> | sigIdle () |
|
SignalProxy< MediaChangeAction(const std::string &queueRef, const std::string &label, const int32_t mediaNr, const std::vector< std::string > &devices, const std::optional< std::string > &desc)> | sigMediaChangeRequested () |
|
SignalProxy< std::optional< zypp::media::AuthData >(const zypp::Url &reqUrl, const std::string &triedUsername, const std::map< std::string, std::string > &extraValues) > | sigAuthRequired () |
|
Definition at line 100 of file provide.h.
◆ MediaHandle
◆ MediaChangeAction
◆ Action
Enumerator |
---|
ABORT | |
RETRY | |
SKIP | |
Definition at line 144 of file provide.h.
◆ Provide()
◆ ZYPP_DECLARE_PRIVATE()
zyppng::Provide::ZYPP_DECLARE_PRIVATE |
( |
Provide |
| ) |
|
|
private |
◆ create()
ProvideRef zyppng::Provide::create |
( |
const zypp::Pathname & |
workDir = "" | ) |
|
|
static |
◆ attachMedia() [1/2]
◆ attachMedia() [2/2]
◆ provide() [1/3]
◆ provide() [2/3]
◆ provide() [3/3]
◆ checksumForFile()
AsyncOpRef< expected< std::string > > zyppng::Provide::checksumForFile |
( |
const zypp::Pathname & |
p, |
|
|
const std::string & |
algorithm |
|
) |
| |
Schedules a job to calculate the checksum for the given file
Definition at line 1082 of file provide.cc.
◆ copyFile()
Schedules a copy job to copy a file from source to target
Definition at line 1097 of file provide.cc.
◆ start()
void zyppng::Provide::start |
( |
| ) |
|
◆ setWorkerPath()
◆ isRunning()
bool zyppng::Provide::isRunning |
( |
| ) |
const |
◆ ejectDevice()
bool zyppng::Provide::ejectDevice |
( |
const std::string & |
queueRef, |
|
|
const std::string & |
device |
|
) |
| |
◆ setStatusTracker()
void zyppng::Provide::setStatusTracker |
( |
ProvideStatusRef |
tracker | ) |
|
◆ providerWorkdir()
◆ credManangerOptions()
◆ setCredManagerOptions()
◆ sigIdle()
SignalProxy< void()> zyppng::Provide::sigIdle |
( |
| ) |
|
◆ sigMediaChangeRequested()
SignalProxy< Provide::MediaChangeAction(const std::string &queueRef, const std::string &, const int32_t, const std::vector< std::string > &, const std::optional< std::string > &)> zyppng::Provide::sigMediaChangeRequested |
( |
| ) |
|
Connect to this signal to handle media change requests
- Note
- It is NOT supported to shutdown the provider or cancel items when in this callback Returning Abort here will effectively cancel the current item anyway.
Definition at line 1158 of file provide.cc.
◆ sigAuthRequired()
SignalProxy< std::optional< zypp::media::AuthData >(const zypp::Url &reqUrl, const std::string &triedUsername, const std::map< std::string, std::string > &extraValues) > zyppng::Provide::sigAuthRequired |
( |
| ) |
|
◆ releaseMedia()
void zyppng::Provide::releaseMedia |
( |
const std::string & |
mediaRef | ) |
|
|
private |
◆ ProvidePromise
◆ ProvideItem
◆ ProvideMediaHandle
◆ ProvideStatus
The documentation for this class was generated from the following files: