|
| ZYPP_DECL_PRIVATE_CONSTR_ARGS (RepoManager, ZyppContextRefType zyppCtx, RepoManagerOptions opt) |
|
virtual | ~RepoManager () |
|
expected< void > | initialize () |
|
ContextRefType | zyppContext () const |
|
const RepoManagerOptions & | options () const |
|
bool | repoEmpty () const |
|
RepoSizeType | repoSize () const |
|
RepoConstIterator | repoBegin () const |
|
RepoConstIterator | repoEnd () const |
|
bool | hasRepo (const std::string &alias) const |
|
RepoInfo | getRepo (const std::string &alias) const |
|
expected< zypp::Pathname > | metadataPath (const RepoInfo &info) const |
|
expected< zypp::Pathname > | packagesPath (const RepoInfo &info) const |
|
expected< RepoStatus > | metadataStatus (const RepoInfo &info) const |
|
expected< void > | cleanMetadata (const RepoInfo &info, ProgressObserverRef myProgress=nullptr) |
|
expected< void > | cleanPackages (const RepoInfo &info, ProgressObserverRef myProgress=nullptr, bool isAutoClean=false) |
|
expected< void > | cleanCacheDirGarbage (ProgressObserverRef myProgress=nullptr) |
|
expected< void > | cleanCache (const RepoInfo &info, ProgressObserverRef myProgress=nullptr) |
|
expected< bool > | isCached (const RepoInfo &info) const |
|
expected< RepoStatus > | cacheStatus (const RepoInfo &info) const |
|
expected< void > | loadFromCache (const RepoInfo &info, ProgressObserverRef myProgress=nullptr) |
|
expected< RepoInfo > | addProbedRepository (RepoInfo info, zypp::repo::RepoType probedType) |
|
expected< void > | removeRepository (const RepoInfo &info, ProgressObserverRef myProgress=nullptr) |
|
expected< RepoInfo > | modifyRepository (const std::string &alias, const RepoInfo &newinfo_r, ProgressObserverRef myProgress=nullptr) |
|
expected< RepoInfo > | getRepositoryInfo (const std::string &alias) |
|
expected< RepoInfo > | getRepositoryInfo (const zypp::Url &url, const zypp::url::ViewOption &urlview) |
|
expected< RefreshCheckStatus > | checkIfToRefreshMetadata (const RepoInfo &info, const zypp::Url &url, RawMetadataRefreshPolicy policy) |
|
expected< void > | refreshMetadata (const RepoInfo &info, RawMetadataRefreshPolicy policy, ProgressObserverRef myProgress=nullptr) |
| Refresh local raw cache.
|
|
std::vector< std::pair< RepoInfo, expected< void > > > | refreshMetadata (std::vector< RepoInfo > infos, RawMetadataRefreshPolicy policy, ProgressObserverRef myProgress=nullptr) |
|
expected< zypp::repo::RepoType > | probe (const zypp::Url &url, const zypp::Pathname &path=zypp::Pathname()) const |
| Probe the metadata type of a repository located at url .
|
|
expected< void > | buildCache (const RepoInfo &info, CacheBuildPolicy policy, ProgressObserverRef myProgress=nullptr) |
|
expected< RepoInfo > | addRepository (const RepoInfo &info, ProgressObserverRef myProgress=nullptr) |
|
expected< void > | addRepositories (const zypp::Url &url, ProgressObserverRef myProgress=nullptr) |
|
bool | serviceEmpty () const |
|
ServiceSizeType | serviceSize () const |
|
ServiceConstIterator | serviceBegin () const |
|
ServiceConstIterator | serviceEnd () const |
|
bool | hasService (const std::string &alias) const |
|
ServiceInfo | getService (const std::string &alias) const |
|
expected< zypp::repo::ServiceType > | probeService (const zypp::Url &url) const |
|
expected< void > | addService (const ServiceInfo &service) |
|
expected< void > | addService (const std::string &alias, const zypp::Url &url) |
|
expected< void > | removeService (const std::string &alias) |
|
expected< void > | removeService (const ServiceInfo &service) |
|
expected< void > | refreshService (const std::string &alias, const RefreshServiceOptions &options_r) |
|
expected< void > | refreshService (const ServiceInfo &service, const RefreshServiceOptions &options_r) |
|
expected< void > | refreshServices (const RefreshServiceOptions &options_r) |
|
expected< void > | modifyService (const std::string &oldAlias, const ServiceInfo &newService) |
|
expected< void > | setCacheStatus (const RepoInfo &info, const RepoStatus &status) |
|
expected< void > | refreshGeoIp (const RepoInfo::url_set &urls) |
|
template<typename OutputIterator > |
void | getRepositoriesInService (const std::string &alias, OutputIterator out) const |
|
zypp::Pathname | generateNonExistingName (const zypp::Pathname &dir, const std::string &basefilename) const |
| Generate a non existing filename in a directory, using a base name.
|
|
std::string | generateFilename (const RepoInfo &info) const |
|
std::string | generateFilename (const ServiceInfo &info) const |
|
const RepoSet & | repos () const |
|
RepoSet & | reposManip () |
|
| Base () |
|
virtual | ~Base () |
|
WeakPtr | parent () const |
|
void | addChild (const Base::Ptr &child) |
|
void | removeChild (const Ptr &child) |
|
const std::unordered_set< Ptr > & | children () const |
|
std::thread::id | threadId () const |
|
template<typename T > |
std::vector< std::weak_ptr< T > > | findChildren () const |
|
template<typename T > |
std::shared_ptr< T > | shared_this () const |
|
template<typename T > |
std::shared_ptr< T > | shared_this () |
|
template<typename T > |
std::weak_ptr< T > | weak_this () const |
|
template<typename T > |
std::weak_ptr< T > | weak_this () |
|
template<typename SenderFunc , typename ReceiverFunc > |
auto | connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
|
template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> |
std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connection > | connectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
|
|
template<typename ... Args> |
static expected< std::shared_ptr< RepoManager< ZyppContextRefType > > > | create (Args &&...args) |
|
static expected< RepoStatus > | metadataStatus (const RepoInfo &info, const RepoManagerOptions &options) |
|
static zypp::repo::RepoType | probeCache (const zypp::Pathname &path_r) |
| Probe Metadata in a local cache directory.
|
|
static expected< RepoStatus > | cacheStatus (const RepoInfo &info, const RepoManagerOptions &options) |
|
static expected< void > | touchIndexFile (const RepoInfo &info, const RepoManagerOptions &options) |
|
template<typename Obj , typename Functor > |
static decltype(auto) | make_base_slot (Obj *o, Functor &&f) |
|
template<typename SenderFunc , typename ReceiverFunc > |
static auto | connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
|
template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> |
static auto | connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
|
template<
typename ZyppContextRefType>
class zyppng::RepoManager< ZyppContextRefType >
The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a given context.
Depending on the ZyppContextRefType the convenienve functions execute the workflows in a sync or async way. In sync mode libzypp's legacy reports are executed. Otherwise progress report is only provided via the ProgressObserver classes.
Definition at line 246 of file repomanager.h.
Generate a non existing filename in a directory, using a base name.
For example if a directory contains 3 files
|– bar |– foo `– moo
If you try to generate a unique filename for this directory, based on "ruu" you will get "ruu", but if you use the base "foo" you will get "foo_1"
- Parameters
-
dir | Directory where the file needs to be unique |
basefilename | string to base the filename on. |
Definition at line 1251 of file repomanager.cc.