libzypp: zypp/ng/repo/workflows/repomanagerwf.h Source File

libzypp 17.38.11

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>
18#include <zypp/RepoManagerFlags.h>
19
20//@ TODO move required types into their own files... e.g. CheckStatus
21#include <zypp/ng/repo/Refresh>
22
23namespace zyppng {
24
25 ZYPP_FWD_DECL_TYPE_WITH_REFS (Context);
26 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProgressObserver);
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
RepoManagerFlags.h
zypp::MirroredOriginSet
A smart container that manages a collection of MirroredOrigin objects, automatically grouping endpoin...
Definition MirroredOrigin.h:336
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::RepoInfo::url_set
std::list< Url > url_set
Definition RepoInfo.h:108
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zyppng::Context
Definition context.h:27
zyppng::LazyMediaHandle
Definition lazymediahandle.h:20
zyppng::ProgressObserver
Definition progressobserver.h:28
zyppng::Provide
Definition provide.h:103
zypp::TriBool
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
Definition String.h:31
zypp::RepoManagerFlags::CacheBuildPolicy
CacheBuildPolicy
Definition RepoManagerFlags.h:28
zyppng::RepoManagerWorkflow
Definition repomanagerwf.cc:37
zyppng::RepoManagerWorkflow::checkIfToRefreshMetadata
MaybeAwaitable< expected< repo::RefreshCheckStatus > > checkIfToRefreshMetadata(repo::RefreshContextRef refCtx, LazyMediaHandle< Provide > medium, ProgressObserverRef progressObserver)
Definition repomanagerwf.cc:337
zyppng::RepoManagerWorkflow::addRepositories
MaybeAwaitable< expected< void > > addRepositories(RepoManagerRef mgr, zypp::Url url, ProgressObserverRef myProgress)
Definition repomanagerwf.cc:1000
zyppng::RepoManagerWorkflow::readRepoFile
MaybeAwaitable< expected< std::list< RepoInfo > > > readRepoFile(ContextRef ctx, zypp::Url repoFileUrl)
Definition repomanagerwf.cc:215
zyppng::RepoManagerWorkflow::probeRepoType
MaybeAwaitable< expected< zypp::repo::RepoType > > probeRepoType(ContextRef ctx, Provide::LazyMediaHandle medium, zypp::Pathname path, std::optional< zypp::Pathname > targetPath)
Definition repomanagerwf.cc:188
zyppng::RepoManagerWorkflow::addRepository
MaybeAwaitable< expected< RepoInfo > > addRepository(RepoManagerRef mgr, RepoInfo info, ProgressObserverRef myProgress, const zypp::TriBool &forcedProbe)
Definition repomanagerwf.cc:906
zyppng::RepoManagerWorkflow::refreshMetadata
MaybeAwaitable< expected< repo::RefreshContextRef > > refreshMetadata(repo::RefreshContextRef refCtx, LazyMediaHandle< Provide > medium, ProgressObserverRef progressObserver)
Definition repomanagerwf.cc:437
zyppng::RepoManagerWorkflow::buildCache
MaybeAwaitable< expected< repo::RefreshContextRef > > buildCache(repo::RefreshContextRef refCtx, zypp::RepoManagerFlags::CacheBuildPolicy policy, ProgressObserverRef progressObserver)
Definition repomanagerwf.cc:834
zyppng::RepoManagerWorkflow::refreshGeoIPData
MaybeAwaitable< expected< void > > refreshGeoIPData(ContextRef ctx, RepoInfo::url_set urls)
Definition repomanagerwf.cc:1167
zyppng::repo
Definition downloader.cc:22
zyppng
Definition MediaNetworkRequestExecutor.h:16
zyppng::RepoInfo
zypp::RepoInfo RepoInfo
Definition repomanager.h:38
repomanager.h
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:119