9 #ifndef ZYPP_NG_REPOMANAGER_WORKFLOW_INCLUDED 10 #define ZYPP_NG_REPOMANAGER_WORKFLOW_INCLUDED 13 #include <zypp-core/zyppng/pipelines/AsyncResult> 14 #include <zypp-core/zyppng/pipelines/Expected> 15 #include <zypp-media/ng/LazyMediaHandle> 21 #include <zypp/ng/repo/Refresh> 31 class MediaSyncFacade;
36 namespace RepoManagerWorkflow {
41 AsyncOpRef<expected<zypp::repo::RepoType> >
probeRepoType( ContextRef ctx,
RepoInfo repo, std::optional<zypp::Pathname> targetPath = {} );
42 expected<zypp::repo::RepoType>
probeRepoType ( SyncContextRef ctx,
RepoInfo repo, std::optional<zypp::Pathname> targetPath = {} );
50 AsyncOpRef<expected<repo::AsyncRefreshContextRef> >
refreshMetadata( repo::AsyncRefreshContextRef refCtx, ProgressObserverRef progressObserver =
nullptr );
51 expected<repo::SyncRefreshContextRef>
refreshMetadata( repo::SyncRefreshContextRef refCtx, ProgressObserverRef progressObserver =
nullptr );
53 AsyncOpRef<expected<repo::AsyncRefreshContextRef> >
refreshMetadata( repo::AsyncRefreshContextRef refCtx,
AsyncLazyMediaHandle medium, ProgressObserverRef progressObserver =
nullptr );
54 expected<repo::SyncRefreshContextRef>
refreshMetadata( repo::SyncRefreshContextRef refCtx,
SyncLazyMediaHandle medium, ProgressObserverRef progressObserver =
nullptr );
LazyMediaHandle< Provide > AsyncLazyMediaHandle
AsyncOpRef< expected< repo::AsyncRefreshContextRef > > refreshMetadata(repo::AsyncRefreshContextRef refCtx, LazyMediaHandle< Provide > medium, ProgressObserverRef progressObserver)
AsyncOpRef< expected< repo::AsyncRefreshContextRef > > buildCache(repo::AsyncRefreshContextRef refCtx, zypp::RepoManagerFlags::CacheBuildPolicy policy, ProgressObserverRef progressObserver)
LazyMediaHandle< MediaSyncFacade > SyncLazyMediaHandle
RepoManagerRef< SyncContextRef > SyncRepoManagerRef
AsyncOpRef< expected< void > > refreshGeoIPData(ContextRef ctx, RepoInfo::url_set urls)
AsyncOpRef< expected< zypp::repo::RepoType > > probeRepoType(ContextRef ctx, AsyncLazyMediaHandle medium, zypp::Pathname path, std::optional< zypp::Pathname > targetPath)
ZYPP_FWD_DECL_TYPE_WITH_REFS(EventDispatcher)
AsyncOpRef< expected< repo::RefreshCheckStatus > > checkIfToRefreshMetadata(repo::AsyncRefreshContextRef refCtx, LazyMediaHandle< Provide > medium, ProgressObserverRef progressObserver)
RepoManagerRef< ContextRef > AsyncRepoManagerRef
AsyncOpRef< expected< RepoInfo > > addRepository(AsyncRepoManagerRef mgr, RepoInfo info, ProgressObserverRef myProgress)
AsyncOpRef< expected< std::list< RepoInfo > > > readRepoFile(ContextRef ctx, zypp::Url repoFileUrl)
AsyncOpRef< expected< void > > addRepositories(AsyncRepoManagerRef mgr, zypp::Url url, ProgressObserverRef myProgress)