libzypp 17.35.12
zyppng::RepoManager< T > Class Template Reference

The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a given context. More...

#include <zypp/ng/repomanager.h>

Inheritance diagram for zyppng::RepoManager< T >:

Classes

struct  MatchServiceAlias
 Functor thats filter RepoInfo by service which it belongs to. More...
 

Public Types

using ContextRefType = ZyppContextRefType
 
using ContextType = typename ZyppContextRefType::element_type
 
using RawMetadataRefreshPolicy = zypp::RepoManagerFlags::RawMetadataRefreshPolicy
 
using CacheBuildPolicy = zypp::RepoManagerFlags::CacheBuildPolicy
 
using RefreshCheckStatus = zypp::RepoManagerFlags::RefreshCheckStatus
 
using RefreshServiceBit = zypp::RepoManagerFlags::RefreshServiceBit
 Flags for tuning RefreshService.
 
using RefreshServiceOptions = zypp::RepoManagerFlags::RefreshServiceOptions
 
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
 
- Public Types inherited from zyppng::Base
using Ptr = std::shared_ptr<Base>
 
using WeakPtr = std::weak_ptr<Base>
 

Public Member Functions

 ZYPP_DECL_PRIVATE_CONSTR_ARGS (RepoManager, ZyppContextRefType zyppCtx, RepoManagerOptions opt)
 
virtual ~RepoManager ()
 
expected< void > initialize ()
 
ContextRefType zyppContext () const
 
const RepoManagerOptionsoptions () 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::PathnamemetadataPath (const RepoInfo &info) const
 
expected< zypp::PathnamepackagesPath (const RepoInfo &info) const
 
expected< RepoStatusmetadataStatus (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< boolisCached (const RepoInfo &info) const
 
expected< RepoStatuscacheStatus (const RepoInfo &info) const
 
expected< void > loadFromCache (const RepoInfo &info, ProgressObserverRef myProgress=nullptr)
 
expected< RepoInfoaddProbedRepository (RepoInfo info, zypp::repo::RepoType probedType)
 
expected< void > removeRepository (const RepoInfo &info, ProgressObserverRef myProgress=nullptr)
 
expected< RepoInfomodifyRepository (const std::string &alias, const RepoInfo &newinfo_r, ProgressObserverRef myProgress=nullptr)
 
expected< RepoInfogetRepositoryInfo (const std::string &alias)
 
expected< RepoInfogetRepositoryInfo (const zypp::Url &url, const zypp::url::ViewOption &urlview)
 
expected< RefreshCheckStatuscheckIfToRefreshMetadata (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::RepoTypeprobe (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< RepoInfoaddRepository (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::ServiceTypeprobeService (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 RepoSetrepos () const
 
RepoSetreposManip ()
 
- Public Member Functions inherited from zyppng::Base
 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 >, connectionconnectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers)
 

Static Public Member Functions

template<typename ... Args>
static expected< std::shared_ptr< RepoManager< ZyppContextRefType > > > create (Args &&...args)
 
static expected< RepoStatusmetadataStatus (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< RepoStatuscacheStatus (const RepoInfo &info, const RepoManagerOptions &options)
 
static expected< void > touchIndexFile (const RepoInfo &info, const RepoManagerOptions &options)
 
- Static Public Member Functions inherited from zyppng::Base
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)
 

Protected Member Functions

expected< void > saveService (ServiceInfo &service) const
 
expected< void > touchIndexFile (const RepoInfo &info)
 
expected< void > init_knownServices ()
 
expected< void > init_knownRepositories ()
 
- Protected Member Functions inherited from zyppng::Base
 Base (BasePrivate &dd)
 

Protected Attributes

ContextRefType _zyppContext
 
RepoManagerOptions _options
 
RepoSet _reposX
 
ServiceSet _services
 
zypp_private::repo::PluginRepoverification _pluginRepoverification
 
zypp::DefaultIntegral< bool, false > _reposDirty
 
- Protected Attributes inherited from zyppng::Base
std::unique_ptr< BasePrivated_ptr
 

Private Member Functions

 ZYPP_ADD_PRIVATE_CONSTR_HELPER ()
 
 ZYPP_ENABLE_MAYBE_ASYNC_MIXIN ((std::is_same_v< ZyppContextRefType, ContextRef >))
 
- Private Member Functions inherited from zyppng::MaybeAsyncMixin< std::is_same_v< ZyppContextRefType, ContextRef > >
auto makeReadyResult (T &&res)
 

Additional Inherited Members

- Private Types inherited from zyppng::MaybeAsyncMixin< std::is_same_v< ZyppContextRefType, ContextRef > >
using MaybeAsyncRef
 
- Static Private Attributes inherited from zyppng::MaybeAsyncMixin< std::is_same_v< ZyppContextRefType, ContextRef > >
static constexpr bool is_async
 

Detailed Description

template<typename T>
class zyppng::RepoManager< T >

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 34 of file ZConfig.h.

Member Typedef Documentation

◆ ContextRefType

template<typename T >
using zyppng::RepoManager< T >::ContextRefType = ZyppContextRefType

Definition at line 253 of file repomanager.h.

◆ ContextType

template<typename T >
using zyppng::RepoManager< T >::ContextType = typename ZyppContextRefType::element_type

Definition at line 254 of file repomanager.h.

◆ RawMetadataRefreshPolicy

template<typename T >
using zyppng::RepoManager< T >::RawMetadataRefreshPolicy = zypp::RepoManagerFlags::RawMetadataRefreshPolicy

Definition at line 256 of file repomanager.h.

◆ CacheBuildPolicy

template<typename T >
using zyppng::RepoManager< T >::CacheBuildPolicy = zypp::RepoManagerFlags::CacheBuildPolicy

Definition at line 257 of file repomanager.h.

◆ RefreshCheckStatus

template<typename T >
using zyppng::RepoManager< T >::RefreshCheckStatus = zypp::RepoManagerFlags::RefreshCheckStatus

Definition at line 260 of file repomanager.h.

◆ RefreshServiceBit

template<typename T >
using zyppng::RepoManager< T >::RefreshServiceBit = zypp::RepoManagerFlags::RefreshServiceBit

Flags for tuning RefreshService.

Definition at line 263 of file repomanager.h.

◆ RefreshServiceOptions

template<typename T >
using zyppng::RepoManager< T >::RefreshServiceOptions = zypp::RepoManagerFlags::RefreshServiceOptions

Definition at line 264 of file repomanager.h.

◆ ServiceSet

template<typename T >
using zyppng::RepoManager< T >::ServiceSet = std::set<ServiceInfo>

ServiceInfo typedefs.

Definition at line 292 of file repomanager.h.

◆ ServiceConstIterator

template<typename T >
using zyppng::RepoManager< T >::ServiceConstIterator = ServiceSet::const_iterator

Definition at line 293 of file repomanager.h.

◆ ServiceSizeType

template<typename T >
using zyppng::RepoManager< T >::ServiceSizeType = ServiceSet::size_type

Definition at line 294 of file repomanager.h.

◆ RepoSet

template<typename T >
using zyppng::RepoManager< T >::RepoSet = std::set<RepoInfo>

RepoInfo typedefs.

Definition at line 297 of file repomanager.h.

◆ RepoConstIterator

template<typename T >
using zyppng::RepoManager< T >::RepoConstIterator = RepoSet::const_iterator

Definition at line 298 of file repomanager.h.

◆ RepoSizeType

template<typename T >
using zyppng::RepoManager< T >::RepoSizeType = RepoSet::size_type

Definition at line 299 of file repomanager.h.

Constructor & Destructor Documentation

◆ ~RepoManager()

template<typename ZyppContextRefType >
zyppng::RepoManager< ZyppContextRefType >::~RepoManager ( )
virtual

Definition at line 249 of file repomanager.cc.

Member Function Documentation

◆ ZYPP_ADD_PRIVATE_CONSTR_HELPER()

template<typename T >
zyppng::RepoManager< T >::ZYPP_ADD_PRIVATE_CONSTR_HELPER ( )
private

◆ ZYPP_ENABLE_MAYBE_ASYNC_MIXIN()

template<typename T >
zyppng::RepoManager< T >::ZYPP_ENABLE_MAYBE_ASYNC_MIXIN ( (std::is_same_v< ZyppContextRefType, ContextRef >) )
private

◆ ZYPP_DECL_PRIVATE_CONSTR_ARGS()

template<typename T >
zyppng::RepoManager< T >::ZYPP_DECL_PRIVATE_CONSTR_ARGS ( RepoManager< T > ,
ZyppContextRefType zyppCtx,
RepoManagerOptions opt )

◆ create()

template<typename T >
template<typename ... Args>
static expected< std::shared_ptr< RepoManager< ZyppContextRefType > > > zyppng::RepoManager< T >::create ( Args &&... args)
inlinestatic

Definition at line 270 of file repomanager.h.

◆ initialize()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::initialize ( )

Definition at line 294 of file repomanager.cc.

◆ zyppContext()

template<typename T >
ContextRefType zyppng::RepoManager< T >::zyppContext ( ) const
inline

Definition at line 308 of file repomanager.h.

◆ options()

template<typename ZyppContextRefType >
const RepoManagerOptions & zyppng::RepoManager< ZyppContextRefType >::options ( ) const

Definition at line 303 of file repomanager.cc.

◆ repoEmpty()

template<typename T >
bool zyppng::RepoManager< T >::repoEmpty ( ) const
inline

Definition at line 314 of file repomanager.h.

◆ repoSize()

template<typename T >
RepoSizeType zyppng::RepoManager< T >::repoSize ( ) const
inline

Definition at line 315 of file repomanager.h.

◆ repoBegin()

template<typename T >
RepoConstIterator zyppng::RepoManager< T >::repoBegin ( ) const
inline

Definition at line 316 of file repomanager.h.

◆ repoEnd()

template<typename T >
RepoConstIterator zyppng::RepoManager< T >::repoEnd ( ) const
inline

Definition at line 317 of file repomanager.h.

◆ hasRepo()

template<typename T >
bool zyppng::RepoManager< T >::hasRepo ( const std::string & alias) const
inline

Definition at line 319 of file repomanager.h.

◆ getRepo()

template<typename T >
RepoInfo zyppng::RepoManager< T >::getRepo ( const std::string & alias) const
inline

Definition at line 322 of file repomanager.h.

◆ metadataPath()

template<typename T >
expected< zypp::Pathname > zyppng::RepoManager< T >::metadataPath ( const RepoInfo & info) const
inline

Definition at line 329 of file repomanager.h.

◆ packagesPath()

template<typename T >
expected< zypp::Pathname > zyppng::RepoManager< T >::packagesPath ( const RepoInfo & info) const
inline

Definition at line 332 of file repomanager.h.

◆ metadataStatus() [1/2]

template<typename ZyppContextRefType >
expected< RepoStatus > zyppng::RepoManager< ZyppContextRefType >::metadataStatus ( const RepoInfo & info,
const RepoManagerOptions & options )
static

Definition at line 309 of file repomanager.cc.

◆ metadataStatus() [2/2]

template<typename ZyppContextRefType >
expected< RepoStatus > zyppng::RepoManager< ZyppContextRefType >::metadataStatus ( const RepoInfo & info) const

Definition at line 373 of file repomanager.cc.

◆ cleanMetadata()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::cleanMetadata ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 379 of file repomanager.cc.

◆ cleanPackages()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::cleanPackages ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr,
bool isAutoClean = false )

Definition at line 398 of file repomanager.cc.

◆ probeCache()

template<typename ZyppContextRefType >
zypp::repo::RepoType zyppng::RepoManager< ZyppContextRefType >::probeCache ( const zypp::Pathname & path_r)
static

Probe Metadata in a local cache directory.

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

Definition at line 425 of file repomanager.cc.

◆ cleanCacheDirGarbage()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::cleanCacheDirGarbage ( ProgressObserverRef myProgress = nullptr)

Definition at line 443 of file repomanager.cc.

◆ cleanCache()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::cleanCache ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 500 of file repomanager.cc.

◆ isCached()

template<typename T >
expected< bool > zyppng::RepoManager< T >::isCached ( const RepoInfo & info) const
inline

Definition at line 348 of file repomanager.h.

◆ cacheStatus() [1/2]

template<typename T >
expected< RepoStatus > zyppng::RepoManager< T >::cacheStatus ( const RepoInfo & info) const
inline

Definition at line 355 of file repomanager.h.

◆ cacheStatus() [2/2]

template<typename T >
static expected< RepoStatus > zyppng::RepoManager< T >::cacheStatus ( const RepoInfo & info,
const RepoManagerOptions & options )
inlinestatic

Definition at line 358 of file repomanager.h.

◆ loadFromCache()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::loadFromCache ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 520 of file repomanager.cc.

◆ addProbedRepository()

template<typename ZyppContextRefType >
expected< RepoInfo > zyppng::RepoManager< ZyppContextRefType >::addProbedRepository ( RepoInfo info,
zypp::repo::RepoType probedType )

Definition at line 572 of file repomanager.cc.

◆ removeRepository()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::removeRepository ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 612 of file repomanager.cc.

◆ modifyRepository()

template<typename ZyppContextRefType >
expected< RepoInfo > zyppng::RepoManager< ZyppContextRefType >::modifyRepository ( const std::string & alias,
const RepoInfo & newinfo_r,
ProgressObserverRef myProgress = nullptr )

Definition at line 701 of file repomanager.cc.

◆ getRepositoryInfo() [1/2]

template<typename ZyppContextRefType >
expected< RepoInfo > zyppng::RepoManager< ZyppContextRefType >::getRepositoryInfo ( const std::string & alias)

Definition at line 790 of file repomanager.cc.

◆ getRepositoryInfo() [2/2]

template<typename ZyppContextRefType >
expected< RepoInfo > zyppng::RepoManager< ZyppContextRefType >::getRepositoryInfo ( const zypp::Url & url,
const zypp::url::ViewOption & urlview )

Definition at line 806 of file repomanager.cc.

◆ checkIfToRefreshMetadata()

template<typename ZyppContextRefType >
expected< typename RepoManager< ZyppContextRefType >::RefreshCheckStatus > zyppng::RepoManager< ZyppContextRefType >::checkIfToRefreshMetadata ( const RepoInfo & info,
const zypp::Url & url,
RawMetadataRefreshPolicy policy )

Definition at line 828 of file repomanager.cc.

◆ refreshMetadata() [1/2]

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::refreshMetadata ( const RepoInfo & info,
RawMetadataRefreshPolicy policy,
ProgressObserverRef myProgress = nullptr )

Refresh local raw cache.

Will try to download the metadata

In case of failure the metadata remains as it was before.

The returned expected can contain one of the following errors: repo::RepoNoUrlException if no urls are available. repo::RepoNoAliasException if can't figure an alias repo::RepoUnknownTypeException if the metadata is unknown repo::RepoException if the repository is invalid (no valid metadata found at any of baseurls)

Todo
Currently no progress is generated, especially for the async code We might need to change this

Definition at line 843 of file repomanager.cc.

◆ refreshMetadata() [2/2]

template<typename ZyppContextRefType >
std::vector< std::pair< RepoInfo, expected< void > > > zyppng::RepoManager< ZyppContextRefType >::refreshMetadata ( std::vector< RepoInfo > infos,
RawMetadataRefreshPolicy policy,
ProgressObserverRef myProgress = nullptr )

Definition at line 883 of file repomanager.cc.

◆ probe()

template<typename ZyppContextRefType >
expected< zypp::repo::RepoType > zyppng::RepoManager< ZyppContextRefType >::probe ( const zypp::Url & url,
const zypp::Pathname & path = zypp::Pathname() ) const

Probe the metadata type of a repository located at url.

Urls here may be rewritten by MediaSetAccess or zyppng::Provide 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 959 of file repomanager.cc.

◆ buildCache()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::buildCache ( const RepoInfo & info,
CacheBuildPolicy policy,
ProgressObserverRef myProgress = nullptr )

Definition at line 971 of file repomanager.cc.

◆ addRepository()

template<typename ZyppContextRefType >
expected< RepoInfo > zyppng::RepoManager< ZyppContextRefType >::addRepository ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Adds the repository in info and returns the updated RepoInfo object.

Definition at line 984 of file repomanager.cc.

◆ addRepositories()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::addRepositories ( const zypp::Url & url,
ProgressObserverRef myProgress = nullptr )

Definition at line 990 of file repomanager.cc.

◆ serviceEmpty()

template<typename T >
bool zyppng::RepoManager< T >::serviceEmpty ( ) const
inline

Definition at line 413 of file repomanager.h.

◆ serviceSize()

template<typename T >
ServiceSizeType zyppng::RepoManager< T >::serviceSize ( ) const
inline

Definition at line 414 of file repomanager.h.

◆ serviceBegin()

template<typename T >
ServiceConstIterator zyppng::RepoManager< T >::serviceBegin ( ) const
inline

Definition at line 415 of file repomanager.h.

◆ serviceEnd()

template<typename T >
ServiceConstIterator zyppng::RepoManager< T >::serviceEnd ( ) const
inline

Definition at line 416 of file repomanager.h.

◆ hasService()

template<typename T >
bool zyppng::RepoManager< T >::hasService ( const std::string & alias) const
inline

Definition at line 418 of file repomanager.h.

◆ getService()

template<typename T >
ServiceInfo zyppng::RepoManager< T >::getService ( const std::string & alias) const
inline

Definition at line 421 of file repomanager.h.

◆ probeService()

template<typename ZyppContextRefType >
expected< zypp::repo::ServiceType > zyppng::RepoManager< ZyppContextRefType >::probeService ( const zypp::Url & url) const

Definition at line 997 of file repomanager.cc.

◆ addService() [1/2]

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::addService ( const ServiceInfo & service)

Definition at line 1003 of file repomanager.cc.

◆ addService() [2/2]

template<typename T >
expected< void > zyppng::RepoManager< T >::addService ( const std::string & alias,
const zypp::Url & url )
inline

Definition at line 432 of file repomanager.h.

◆ removeService() [1/2]

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::removeService ( const std::string & alias)

Definition at line 1063 of file repomanager.cc.

◆ removeService() [2/2]

template<typename T >
expected< void > zyppng::RepoManager< T >::removeService ( const ServiceInfo & service)
inline

Definition at line 436 of file repomanager.h.

◆ refreshService() [1/2]

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::refreshService ( const std::string & alias,
const RefreshServiceOptions & options_r )

Definition at line 1032 of file repomanager.cc.

◆ refreshService() [2/2]

template<typename T >
expected< void > zyppng::RepoManager< T >::refreshService ( const ServiceInfo & service,
const RefreshServiceOptions & options_r )
inline

Definition at line 440 of file repomanager.h.

◆ refreshServices()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::refreshServices ( const RefreshServiceOptions & options_r)
Todo
ignore ServicePluginInformalException in calling code

Definition at line 1041 of file repomanager.cc.

◆ modifyService()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::modifyService ( const std::string & oldAlias,
const ServiceInfo & newService )
Todo
refresh the service automatically if url is changed?

Definition at line 1125 of file repomanager.cc.

◆ touchIndexFile() [1/2]

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::touchIndexFile ( const RepoInfo & info,
const RepoManagerOptions & options )
static

Definition at line 1265 of file repomanager.cc.

◆ setCacheStatus()

template<typename T >
expected< void > zyppng::RepoManager< T >::setCacheStatus ( const RepoInfo & info,
const RepoStatus & status )
inline

Definition at line 449 of file repomanager.h.

◆ refreshGeoIp()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::refreshGeoIp ( const RepoInfo::url_set & urls)

Checks for any of the given urls if there is no geoip data available, caches the results in the metadata cache for 24hrs. The given urls need to be configured as valid geoIP targets ( usually download.opensuse.org )

Definition at line 1307 of file repomanager.cc.

◆ getRepositoriesInService()

template<typename T >
template<typename OutputIterator >
void zyppng::RepoManager< T >::getRepositoriesInService ( const std::string & alias,
OutputIterator out ) const
inline

Definition at line 471 of file repomanager.h.

◆ generateNonExistingName()

template<typename ZyppContextRefType >
zypp::Pathname zyppng::RepoManager< ZyppContextRefType >::generateNonExistingName ( const zypp::Pathname & dir,
const std::string & basefilename ) const

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
dirDirectory where the file needs to be unique
basefilenamestring to base the filename on.

Definition at line 1251 of file repomanager.cc.

◆ generateFilename() [1/2]

template<typename T >
std::string zyppng::RepoManager< T >::generateFilename ( const RepoInfo & info) const
inline

Definition at line 481 of file repomanager.h.

◆ generateFilename() [2/2]

template<typename T >
std::string zyppng::RepoManager< T >::generateFilename ( const ServiceInfo & info) const
inline

Definition at line 484 of file repomanager.h.

◆ saveService()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::saveService ( ServiceInfo & service) const
protected

Definition at line 1208 of file repomanager.cc.

◆ touchIndexFile() [2/2]

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::touchIndexFile ( const RepoInfo & info)
protected

Definition at line 1313 of file repomanager.cc.

◆ init_knownServices()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::init_knownServices ( )
protected

Definition at line 1319 of file repomanager.cc.

◆ init_knownRepositories()

template<typename ZyppContextRefType >
expected< void > zyppng::RepoManager< ZyppContextRefType >::init_knownRepositories ( )
protected

Definition at line 1393 of file repomanager.cc.

◆ repos()

template<typename T >
const RepoSet & zyppng::RepoManager< T >::repos ( ) const
inline

Definition at line 497 of file repomanager.h.

◆ reposManip()

template<typename T >
RepoSet & zyppng::RepoManager< T >::reposManip ( )
inline

Definition at line 498 of file repomanager.h.

Member Data Documentation

◆ _zyppContext

template<typename T >
ContextRefType zyppng::RepoManager< T >::_zyppContext
protected

Definition at line 501 of file repomanager.h.

◆ _options

template<typename T >
RepoManagerOptions zyppng::RepoManager< T >::_options
protected

Definition at line 502 of file repomanager.h.

◆ _reposX

template<typename T >
RepoSet zyppng::RepoManager< T >::_reposX
protected

Definition at line 503 of file repomanager.h.

◆ _services

template<typename T >
ServiceSet zyppng::RepoManager< T >::_services
protected

Definition at line 504 of file repomanager.h.

◆ _pluginRepoverification

template<typename T >
zypp_private::repo::PluginRepoverification zyppng::RepoManager< T >::_pluginRepoverification
protected

Definition at line 505 of file repomanager.h.

◆ _reposDirty

template<typename T >
zypp::DefaultIntegral<bool,false> zyppng::RepoManager< T >::_reposDirty
protected

Definition at line 506 of file repomanager.h.


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