libzypp 17.34.1
zypp::RepoManager::Impl Class Reference

RepoManager implementation. More...

#include <zypp/zypp_detail/repomanagerbase_p.h>

Inheritance diagram for zypp::RepoManager::Impl:

Public Member Functions

 Impl (RepoManagerOptions &&opt)
 
 Impl (const Impl &)=default
 
 Impl (Impl &&)=delete
 
Imploperator= (const Impl &)=delete
 
Imploperator= (Impl &&)=delete
 
 ~Impl () override
 
RefreshCheckStatus checkIfToRefreshMetadata (const RepoInfo &info, const Url &url, RawMetadataRefreshPolicy policy)
 
void refreshMetadata (const RepoInfo &info, RawMetadataRefreshPolicy policy, OPT_PROGRESS)
 
void buildCache (const RepoInfo &info, CacheBuildPolicy policy, OPT_PROGRESS)
 
repo::RepoType probe (const Url &url, const Pathname &path=Pathname()) const
 Probe the metadata type of a repository located at url.
 
void loadFromCache (const RepoInfo &info, OPT_PROGRESS)
 
void addRepository (const RepoInfo &info, OPT_PROGRESS)
 
void addRepositories (const Url &url, OPT_PROGRESS)
 
void removeRepository (const RepoInfo &info, OPT_PROGRESS) override
 
void refreshServices (const RefreshServiceOptions &options_r)
 
void refreshService (const std::string &alias, const RefreshServiceOptions &options_r)
 
void refreshService (const ServiceInfo &service, const RefreshServiceOptions &options_r)
 
repo::ServiceType probeService (const Url &url) const
 
void refreshGeoIPData (const RepoInfo::url_set &urls)
 
- Public Member Functions inherited from zypp::RepoManagerBaseImpl
 RepoManagerBaseImpl (RepoManagerOptions &&opt)
 
virtual ~RepoManagerBaseImpl ()
 
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
 
Pathname metadataPath (const RepoInfo &info) const
 
Pathname packagesPath (const RepoInfo &info) const
 
RepoStatus metadataStatus (const RepoInfo &info) const
 
void cleanMetadata (const RepoInfo &info, OPT_PROGRESS)
 
void cleanPackages (const RepoInfo &info, OPT_PROGRESS, bool isAutoClean=false)
 
void cleanCacheDirGarbage (OPT_PROGRESS)
 
void cleanCache (const RepoInfo &info, OPT_PROGRESS)
 
bool isCached (const RepoInfo &info) const
 
RepoStatus cacheStatus (const RepoInfo &info) const
 
void loadFromCache (const RepoInfo &info, OPT_PROGRESS)
 
void addProbedRepository (const RepoInfo &info, repo::RepoType probedType)
 
void modifyRepository (const std::string &alias, const RepoInfo &newinfo_r, OPT_PROGRESS)
 
RepoInfo getRepositoryInfo (const std::string &alias)
 
RepoInfo getRepositoryInfo (const Url &url, const url::ViewOption &urlview)
 
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
 
void addService (const ServiceInfo &service)
 
void addService (const std::string &alias, const Url &url)
 
void removeService (const std::string &alias)
 
void removeService (const ServiceInfo &service)
 
void modifyService (const std::string &oldAlias, const ServiceInfo &newService)
 

Private Member Functions

Implclone () const
 clone for RWCOW_pointer
 

Private Attributes

zypp_private::repo::PluginRepoverification _pluginRepoverification
 

Friends

ImplrwcowClone (const Impl *rhs)
 

Related Symbols

(Note that these are not member symbols.)

std::ostream & operator<< (std::ostream &str, const RepoManager::Impl &obj)
 Stream output.
 

Additional Inherited Members

- Public Types inherited from zypp::RepoManagerBaseImpl
using ServiceSet = std::set<ServiceInfo>
 ServiceInfo typedefs.
 
using ServiceConstIterator = ServiceSet::const_iterator
 
using ServiceSizeType = ServiceSet::size_type
 
using RepoSet = std::set<RepoInfo>
 RepoInfo typedefs.
 
using RepoConstIterator = RepoSet::const_iterator
 
using RepoSizeType = RepoSet::size_type
 
- Static Public Member Functions inherited from zypp::RepoManagerBaseImpl
static RepoStatus metadataStatus (const RepoInfo &info, const RepoManagerOptions &options)
 
static repo::RepoType probeCache (const Pathname &path_r)
 Probe Metadata in a local cache directory.
 
static RepoStatus cacheStatus (const RepoInfo &info, const RepoManagerOptions &options)
 
static void touchIndexFile (const RepoInfo &info, const RepoManagerOptions &options)
 
- Protected Member Functions inherited from zypp::RepoManagerBaseImpl
void removeRepositoryImpl (const RepoInfo &info, OPT_PROGRESS)
 
void saveService (ServiceInfo &service) const
 
Pathname generateNonExistingName (const 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
 
void setCacheStatus (const RepoInfo &info, const RepoStatus &status)
 
void touchIndexFile (const RepoInfo &info)
 
template<typename OutputIterator >
void getRepositoriesInService (const std::string &alias, OutputIterator out) const
 
void init_knownServices ()
 
void init_knownRepositories ()
 
const RepoSetrepos () const
 
RepoSetreposManip ()
 
- Protected Attributes inherited from zypp::RepoManagerBaseImpl
RepoManagerOptions _options
 
RepoSet _reposX
 
ServiceSet _services
 
DefaultIntegral< bool, false > _reposDirty
 

Detailed Description

RepoManager implementation.

Definition at line 185 of file RepoManager.cc.

Constructor & Destructor Documentation

◆ Impl() [1/3]

zypp::RepoManager::Impl::Impl ( RepoManagerOptions && opt)
inline

Definition at line 188 of file RepoManager.cc.

◆ Impl() [2/3]

zypp::RepoManager::Impl::Impl ( const Impl & )
default

◆ Impl() [3/3]

zypp::RepoManager::Impl::Impl ( Impl && )
delete

◆ ~Impl()

zypp::RepoManager::Impl::~Impl ( )
inlineoverride

Definition at line 201 of file RepoManager.cc.

Member Function Documentation

◆ operator=() [1/2]

Impl & zypp::RepoManager::Impl::operator= ( const Impl & )
delete

◆ operator=() [2/2]

Impl & zypp::RepoManager::Impl::operator= ( Impl && )
delete

◆ checkIfToRefreshMetadata()

RepoManager::RefreshCheckStatus zypp::RepoManager::Impl::checkIfToRefreshMetadata ( const RepoInfo & info,
const Url & url,
RawMetadataRefreshPolicy policy )

Definition at line 288 of file RepoManager.cc.

◆ refreshMetadata()

void zypp::RepoManager::Impl::refreshMetadata ( const RepoInfo & info,
RawMetadataRefreshPolicy policy,
OPT_PROGRESS  )

Definition at line 315 of file RepoManager.cc.

◆ buildCache()

void zypp::RepoManager::Impl::buildCache ( const RepoInfo & info,
CacheBuildPolicy policy,
OPT_PROGRESS  )

Definition at line 396 of file RepoManager.cc.

◆ probe()

repo::RepoType zypp::RepoManager::Impl::probe ( const Url & url,
const Pathname & path = Pathname() ) const

Probe the metadata type of a repository located at url.

Urls here may be rewritten by MediaSetAccess to reflect the correct media number.

Note
Metadata in local cache directories must be probed using probeCache as a cache path must not be rewritten (bnc#946129)

Definition at line 556 of file RepoManager.cc.

◆ loadFromCache()

void zypp::RepoManager::Impl::loadFromCache ( const RepoInfo & info,
OPT_PROGRESS  )

Definition at line 576 of file RepoManager.cc.

◆ addRepository()

void zypp::RepoManager::Impl::addRepository ( const RepoInfo & info,
OPT_PROGRESS  )

Definition at line 595 of file RepoManager.cc.

◆ addRepositories()

void zypp::RepoManager::Impl::addRepositories ( const Url & url,
OPT_PROGRESS  )

Definition at line 633 of file RepoManager.cc.

◆ removeRepository()

void zypp::RepoManager::Impl::removeRepository ( const RepoInfo & info,
OPT_PROGRESS  )
overridevirtual

Implements zypp::RepoManagerBaseImpl.

Definition at line 690 of file RepoManager.cc.

◆ refreshServices()

void zypp::RepoManager::Impl::refreshServices ( const RefreshServiceOptions & options_r)

Definition at line 703 of file RepoManager.cc.

◆ refreshService() [1/2]

void zypp::RepoManager::Impl::refreshService ( const std::string & alias,
const RefreshServiceOptions & options_r )
Todo
add callbacks for apps (start, end, repo removed, repo added, repo changed)?

Definition at line 721 of file RepoManager.cc.

◆ refreshService() [2/2]

void zypp::RepoManager::Impl::refreshService ( const ServiceInfo & service,
const RefreshServiceOptions & options_r )
inline

Definition at line 266 of file RepoManager.cc.

◆ probeService()

repo::ServiceType zypp::RepoManager::Impl::probeService ( const Url & url) const

Definition at line 1088 of file RepoManager.cc.

◆ refreshGeoIPData()

void zypp::RepoManager::Impl::refreshGeoIPData ( const RepoInfo::url_set & urls)

Definition at line 1116 of file RepoManager.cc.

◆ clone()

Impl * zypp::RepoManager::Impl::clone ( ) const
inlineprivate

clone for RWCOW_pointer

Definition at line 279 of file RepoManager.cc.

Friends And Related Symbol Documentation

◆ rwcowClone

Impl * rwcowClone ( const Impl * rhs)
friend

◆ operator<<()

std::ostream & operator<< ( std::ostream & str,
const RepoManager::Impl & obj )
related

Stream output.

Definition at line 285 of file RepoManager.cc.

Member Data Documentation

◆ _pluginRepoverification

zypp_private::repo::PluginRepoverification zypp::RepoManager::Impl::_pluginRepoverification
private

Definition at line 274 of file RepoManager.cc.


The documentation for this class was generated from the following file: