libzypp: zypp/ng/workflows/checksumwf.h Source File

libzypp 17.36.6

checksumwf.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_CHECKSUMWORKFLOW_INCLUDED
10#define ZYPP_NG_CHECKSUMWORKFLOW_INCLUDED
11
12#include <zypp-core/zyppng/async/AsyncOp>
13#include <zypp-core/zyppng/pipelines/Expected>
14#include <functional>
15
16#include <zypp/ng/workflows/contextfacade.h>
17#include <zypp/ng/workflows/mediafacade.h>
18
19namespace zypp {
20 namespace filesystem {
21 class Pathname;
22 }
23 using filesystem::Pathname;
24 class CheckSum;
25}
26
27namespace zyppng {
28
29 class ProvideRes;
30 ZYPP_FWD_DECL_TYPE_WITH_REFS(Context);
31
32 namespace CheckSumWorkflow {
33 expected<void> verifyChecksum ( SyncContextRef zyppCtx, zypp::CheckSum checksum, zypp::Pathname file );
34 AsyncOpRef<expected<void>> verifyChecksum ( ContextRef zyppCtx, zypp::CheckSum checksum, zypp::Pathname file );
35
40 std::function< AsyncOpRef<expected<ProvideRes>>( ProvideRes && ) > checksumFileChecker( ContextRef zyppCtx, zypp::CheckSum checksum );
41 std::function< expected<SyncProvideRes>( SyncProvideRes && ) > checksumFileChecker( SyncContextRef zyppCtx, zypp::CheckSum checksum );
42
43 }
44}
45
46
47
48#endif
zypp::CheckSum
Definition CheckSum.h:34
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zyppng::Context
Definition context.h:39
zyppng::ProvideRes
A ProvideRes object is a reference counted ownership of a resource in the cache provided by a Provide...
Definition provideres.h:36
contextfacade.h
mediafacade.h
zypp::filesystem
Types and functions for filesystem operations.
Definition Glob.cc:24
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zyppng::CheckSumWorkflow
Definition checksumwf.cc:29
zyppng::CheckSumWorkflow::checksumFileChecker
std::function< AsyncOpRef< expected< ProvideRes > >(ProvideRes &&)> checksumFileChecker(ContextRef zyppCtx, zypp::CheckSum checksum)
Definition checksumwf.cc:125
zyppng::CheckSumWorkflow::verifyChecksum
expected< void > verifyChecksum(SyncContextRef zyppCtx, zypp::CheckSum checksum, zypp::Pathname file)
Definition checksumwf.cc:115
zyppng
Definition MediaCurl2.h:22
zyppng::AsyncOpRef
std::shared_ptr< AsyncOp< T > > AsyncOpRef
Definition asyncop.h:255
zyppng::SyncProvideRes
MediaSyncFacade::Res SyncProvideRes
Definition mediafacade.h:124
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126