libzypp 17.38.3
repomanagerwf.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_REPOMANAGER_WORKFLOW_INCLUDED
10#define ZYPP_NG_REPOMANAGER_WORKFLOW_INCLUDED
11
12
13#include <zypp-core/ng/async/task.h>
14#include <zypp-core/ng/pipelines/Expected>
15#include <zypp-media/ng/LazyMediaHandle>
16
17#include <zypp/ng/repomanager.h>
19
20//@ TODO move required types into their own files... e.g. CheckStatus
21#include <zypp/ng/repo/Refresh>
22
23namespace zyppng {
24
27
28 class Provide;
29
30 namespace RepoManagerWorkflow {
31
32 MaybeAwaitable<expected<zypp::repo::RepoType> > probeRepoType( ContextRef ctx, LazyMediaHandle<Provide> medium, zypp::Pathname path, std::optional<zypp::Pathname> targetPath = {} );
33
34 MaybeAwaitable<expected<zypp::repo::RepoType> > probeRepoType( ContextRef ctx, RepoInfo repo, std::optional<zypp::Pathname> targetPath = {} );
35
36 MaybeAwaitable<expected<std::list<RepoInfo>>> readRepoFile( ContextRef ctx, zypp::Url repoFileUrl );
37
38 MaybeAwaitable<expected<repo::RefreshCheckStatus> > checkIfToRefreshMetadata( repo::RefreshContextRef refCtx, LazyMediaHandle<Provide> medium, ProgressObserverRef progressObserver = nullptr );
39
40 MaybeAwaitable<expected<repo::RefreshContextRef> > refreshMetadata( repo::RefreshContextRef refCtx, ProgressObserverRef progressObserver = nullptr );
41
42 MaybeAwaitable<expected<repo::RefreshContextRef> > refreshMetadata( repo::RefreshContextRef refCtx, LazyMediaHandle<Provide> medium, ProgressObserverRef progressObserver = nullptr );
43
44 MaybeAwaitable<expected<repo::RefreshContextRef> > buildCache( repo::RefreshContextRef refCtx, zypp::RepoManagerFlags::CacheBuildPolicy policy, ProgressObserverRef progressObserver = nullptr );
45
46 MaybeAwaitable<expected<RepoInfo>> addRepository( RepoManagerRef mgr, RepoInfo info, ProgressObserverRef myProgress = nullptr, const zypp::TriBool & forcedProbe = zypp::indeterminate );
47
48 MaybeAwaitable<expected<void>> addRepositories( RepoManagerRef mgr, zypp::Url url, ProgressObserverRef myProgress = nullptr );
49
50 MaybeAwaitable<expected<void>> refreshGeoIPData( ContextRef ctx, RepoInfo::url_set urls );
51
52 MaybeAwaitable<expected<void>> refreshGeoIPData( ContextRef ctx, zypp::MirroredOriginSet origins );
53
54 }
55}
56
57
58#endif
A smart container that manages a collection of MirroredOrigin objects, automatically grouping endpoin...
What is known about a repository.
Definition RepoInfo.h:72
std::list< Url > url_set
Definition RepoInfo.h:108
Url manipulation class.
Definition Url.h:93
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
Definition String.h:31
MaybeAwaitable< expected< repo::RefreshCheckStatus > > checkIfToRefreshMetadata(repo::RefreshContextRef refCtx, LazyMediaHandle< Provide > medium, ProgressObserverRef progressObserver)
MaybeAwaitable< expected< void > > addRepositories(RepoManagerRef mgr, zypp::Url url, ProgressObserverRef myProgress)
MaybeAwaitable< expected< std::list< RepoInfo > > > readRepoFile(ContextRef ctx, zypp::Url repoFileUrl)
MaybeAwaitable< expected< zypp::repo::RepoType > > probeRepoType(ContextRef ctx, Provide::LazyMediaHandle medium, zypp::Pathname path, std::optional< zypp::Pathname > targetPath)
MaybeAwaitable< expected< RepoInfo > > addRepository(RepoManagerRef mgr, RepoInfo info, ProgressObserverRef myProgress, const zypp::TriBool &forcedProbe)
MaybeAwaitable< expected< repo::RefreshContextRef > > refreshMetadata(repo::RefreshContextRef refCtx, LazyMediaHandle< Provide > medium, ProgressObserverRef progressObserver)
MaybeAwaitable< expected< repo::RefreshContextRef > > buildCache(repo::RefreshContextRef refCtx, zypp::RepoManagerFlags::CacheBuildPolicy policy, ProgressObserverRef progressObserver)
MaybeAwaitable< expected< void > > refreshGeoIPData(ContextRef ctx, RepoInfo::url_set urls)
zypp::RepoInfo RepoInfo
Definition repomanager.h:38
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126