libzypp  17.35.15
zyppng Namespace Reference

Namespaces

 AcceptFailedVerificationRequest
 Ask the user to accept a file that is signed but where the signature verification failed.
 
 AcceptKeyRequest
 
 AcceptNoDigestRequest
 
 AcceptPackageKeyRequest
 Ask user to trust and/or import the package key to trusted keyring.
 
 AcceptUnknownDigestRequest
 
 AcceptUnknownKeyRequest
 Ask the user to accept a unknown key.
 
 AcceptUnsignedFileRequest
 
 AcceptWrongDigestRequest
 
 AttachFinishedMsgFields
 
 AttachMsgFields
 
 AuthDataRequestMsgFields
 
 AuthInfoMsgFields
 
 CheckSumWorkflow
 
 constants
 
 DetachMsgFields
 
 detail
 
 DownloadWorkflow
 
 EjectMsgFields
 
 env
 
 ErrMsgFields
 
 internal
 
 KeyAutoImportInfoEvent
 Notify that a repository auto imported new package signing keys.
 
 KeyRingWorkflow
 
 MediaChangeRequestMsgFields
 
 MetalinkRedirectMsgFields
 
 NonImportedKeysInfoEvent
 Notify the user about keys that were not imported from the rpm key database into zypp keyring.
 
 operators
 
 PlaindirWorkflows
 
 ProvideFinishedMsgFields
 
 ProvideMessageFields
 
 ProvideMsgFields
 
 ProvideStartedMsgFields
 
 RedirectMsgFields
 
 repo
 
 RepoDownloaderWorkflow
 
 RepoInfoWorkflow
 
 RepoManagerWorkflow
 
 RepoServicesWorkflow
 
 rpc
 
 RpmmdWorkflows
 Downloader workspace for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk.
 
 SignatureFileCheckWorkflow
 
 str
 
 SuseTagsWorkflows
 Download workflow namespace for SUSETags (YaST2) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk and how to calculate the repo status.
 
 VerifyInfoEvent
 
 worker
 

Classes

class  AbstractDirectSpawnEngine
 
class  AbstractEventSource
 
class  AbstractEventSourcePrivate
 
class  AbstractSpawnEngine
 
class  AsyncDataSource
 
class  AsyncDataSourcePrivate
 
class  AsyncOp
 
class  AsyncOpBase
 
class  AsyncOpNotReadyException
 
class  AsyncQueue
 
class  AsyncQueueBase
 
class  AsyncQueueWatch
 
class  AsyncQueueWatchPrivate
 
class  AttachedMediaInfo
 
class  AttachedSyncMediaInfo
 
class  AttachMediaItem
 
struct  AutoDisconnect
 
class  Base
 
class  BasePrivate
 
struct  BasicDownloaderStateBase
 
class  BasicReportHelper
 
class  BasicState
 
class  BooleanChoiceRequest
 
class  CacheProviderContext
 
class  CancelNotImplementedException
 
class  Context
 
class  ContextPrivate
 
class  CurlMultiPartDataReceiver
 
class  CurlMultiPartHandler
 The CurlMultiPartHandler class. More...
 
struct  DetectMetalinkState
 
class  DigestReportHelper
 
struct  DlMetaLinkInfoState
 
struct  DlMetalinkState
 
struct  DlNormalFileState
 
class  Download
 
class  Downloader
 The Downloader class. More...
 
class  DownloaderPrivate
 
class  DownloadPrivate
 
class  DownloadPrivateBase
 
class  DownloadSpec
 
class  DownloadSpecPrivate
 
class  EventDispatcher
 
class  EventDispatcherPrivate
 
class  EventLoop
 
class  EventLoopPrivate
 
class  expected
 
class  expected< void, E >
 
struct  FinishedState
 
class  ForkSpawnEngine
 
struct  function_traits
 
struct  function_traits< F, std::void_t< decltype(&F::operator())> >
 
struct  function_traits< R(&)(Args...)>
 
struct  function_traits< R(*)(Args...)>
 
struct  function_traits< R(Args...)>
 
struct  function_traits< R(C::*)(Args...) const >
 
struct  function_traits< R(C::*)(Args...)>
 
struct  function_traits< R(C::*)>
 
struct  GAbstractEventSource
 
struct  GLibTimerSource
 
struct  GlibWaitPIDData
 
struct  GUnixPollFD
 
class  HeaderValue
 
class  HeaderValueMap
 
struct  InitialState
 
class  InvalidMessageReceivedException
 
class  IOBuffer
 
class  IODevice
 
class  IODeviceOStreamBuf
 
class  IODevicePrivate
 
struct  is_instance_of
 
struct  is_instance_of< Templ, Templ< Args... > >
 
class  JobReportHelper
 
class  KeyRingReportHelper
 
class  LazyMediaHandle
 
class  ListChoiceRequest
 
struct  LogicBase
 
struct  MaybeAsyncMixin
 
class  MediaDataVerifier
 
class  MediaSyncFacade
 
class  MemSignal
 
class  MemSignal< SignalHost, ReturnType(Arguments...)>
 
class  MirrorControl
 
struct  MirrorHandlingStateBase
 
class  myerror_t
 
struct  NestedAsyncOpMixin
 
class  NetworkRequest
 
class  NetworkRequestDispatcherPrivate
 
class  NetworkRequestError
 The NetworkRequestError class Represents a error that occured in. More...
 
class  NetworkRequestErrorPrivate
 
class  NetworkRequestPrivate
 
class  NotFoundException
 
struct  Pipe
 
struct  PrepareMultiState
 
class  Process
 
class  ProcessPrivate
 
class  ProgressObserver
 
struct  ProgressObserverAdaptor
 
class  ProgressObserverPrivate
 
class  Provide
 
class  ProvideFileItem
 
class  ProvideFileSpec
 
class  ProvideItem
 
class  ProvideItemPrivate
 
class  ProvideMediaHandle
 
class  ProvideMediaSpec
 
class  ProvideMessage
 
class  ProvidePrivate
 
class  ProvidePromise
 
class  ProvideQueue
 
class  ProviderConfiguration
 
class  ProvideRequest
 
class  ProvideRes
 A ProvideRes object is a reference counted ownership of a resource in the cache provided by a Provide instance. More...
 
struct  ProvideResourceData
 
class  ProvideSpecBasePrivate
 
class  ProvideStatus
 
struct  RangeDownloaderBaseState
 
struct  remove_smart_ptr
 
struct  remove_smart_ptr< std::shared_ptr< T > >
 
struct  remove_smart_ptr< std::unique_ptr< T > >
 
struct  RepoCollector
 Simple callback to collect the results. More...
 
class  RepoManager
 The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a given context. More...
 
class  RepoManagerPrivate
 
class  ServiceCollector
 Functor collecting ServiceInfos into a ServiceSet. More...
 
class  ShowMessageRequest
 
class  Signal
 
class  Signal< R(T...)>
 
class  SignalProxy
 
class  SignalProxy< R(T...)>
 Hides the signals emit function from external code. More...
 
struct  SimpleExecutor
 
class  SimpleState
 
class  SockAddr
 
class  Socket
 
class  SocketNotifier
 
class  SocketNotifierPrivate
 
class  SocketPrivate
 
class  Statemachine
 This defines the actual StateMachine. More...
 
class  StompFrameStream
 
class  SuseMediaDataVerifier
 
class  SyncContext
 
class  SyncMediaHandle
 
struct  SyncOp
 
struct  ThreadData
 
class  Timer
 The Timer class provides repetitive and single-shot timers. More...
 
class  TimerPrivate
 
struct  Transition
 
class  TrustKeyRequest
 
class  UnixSignalSource
 
class  UnixSignalSourcePrivate
 
class  UnixSockAddr
 
class  UserInterface
 
class  UserInterfacePrivate
 
class  UserRequest
 
class  Wakeup
 
class  WorkerCaps
 

Typedefs

using KeyRing = zypp::KeyRing
 
using KeyRingRef = zypp::KeyRing_Ptr
 
using AsyncLazyMediaHandle = LazyMediaHandle< Provide >
 
using SyncLazyMediaHandle = LazyMediaHandle< MediaSyncFacade >
 
using RepoInfo = zypp::RepoInfo
 
using RepoStatus = zypp::RepoStatus
 
using RepoInfoList = zypp::RepoInfoList
 
using ServiceInfo = zypp::ServiceInfo
 
using RepoManagerOptions = zypp::RepoManagerOptions
 
using SyncRepoManager = RepoManager< SyncContextRef >
 
using SyncRepoManagerRef = RepoManagerRef< SyncContextRef >
 
using AsyncRepoManager = RepoManager< ContextRef >
 
using AsyncRepoManagerRef = RepoManagerRef< ContextRef >
 
template<typename OpType >
using MaybeAsyncContextRef = std::conditional_t< detail::is_async_op_v< OpType >, ContextRef, SyncContextRef >
 
using AsyncCacheProviderContext = CacheProviderContext< ContextRef >
 
using SyncCacheProviderContext = CacheProviderContext< SyncContextRef >
 
using SyncProvideRes = MediaSyncFacade::Res
 
template<typename T >
using AsyncOpRef = std::shared_ptr< AsyncOp< T > >
 
using connection = sigc::connection
 
using trackable = sigc::trackable
 
template<class R , class... T>
using SignalProxyBase = sigc::signal< R(T...)>
 
template<typename T >
using Ref = std::shared_ptr< T >
 
template<typename T >
using WeakRef = std::weak_ptr< T >
 
using ByteArray = zypp::ByteArray
 
using UByteArray = zypp::UByteArray
 
using IdString = zypp::IdString
 
using IdStringSet = zypp::IdStringSet
 
using Url = zypp::Url
 
template<typename T >
using has_call_operator = decltype(&T::operator())
 
template<typename T >
using remove_smart_ptr_t = typename remove_smart_ptr< T >::type
 
using UserData = zypp::callback::UserData
 
using ContentType = zypp::ContentType
 
using AuthData = zypp::media::AuthData
 
using AuthData_Ptr = zypp::media::AuthData_Ptr
 
using NetworkAuthData = zypp::media::CurlAuthData
 
using NetworkAuthData_Ptr = zypp::media::CurlAuthData_Ptr
 
using TransferSettings = zypp::media::TransferSettings
 
template<typename Derived >
using DownloadStatemachine = Statemachine< Derived, Download::State, Transition< InitialState, &InitialState::sigTransitionToDetectMetalinkState, DetectMetalinkState >, Transition< InitialState, &InitialState::sigTransitionToDlMetaLinkInfoState, DlMetaLinkInfoState >, Transition< InitialState, &InitialState::sigTransitionToDlNormalFileState, DlNormalFileState >, Transition< DetectMetalinkState, &DetectMetalinkState::sigFinished, DlMetaLinkInfoState, &DetectMetalinkState::toMetalinkGuard, &DetectMetalinkState::toDlMetaLinkInfoState >, Transition< DetectMetalinkState, &DetectMetalinkState::sigFinished, DlNormalFileState, &DetectMetalinkState::toSimpleDownloadGuard >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigFinished, FinishedState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToFinished >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigGotMetadata, PrepareMultiState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToPrepareMulti >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigFailed, FinishedState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToFinished >, Transition< PrepareMultiState, &PrepareMultiState::sigFinished, DlMetalinkState, &PrepareMultiState::toMetalinkDownloadGuard, &PrepareMultiState::transitionToMetalinkDl >, Transition< PrepareMultiState, &PrepareMultiState::sigFallback, DlNormalFileState, DefaultStateCondition, &PrepareMultiState::fallbackToNormalTransition >, Transition< PrepareMultiState, &PrepareMultiState::sigFailed, DlNormalFileState >, Transition< DlMetalinkState, &DlMetalinkState::sigFinished, FinishedState, DefaultStateCondition, &DlMetalinkState::transitionToFinished >, Transition< DlMetalinkState, &DlMetalinkState::sigFailed, FinishedState, &DlMetalinkState::toFinalStateCondition, &DlMetalinkState::transitionToFinished >, Transition< DlMetalinkState, &DlMetalinkState::sigFailed, DlNormalFileState, &DlMetalinkState::toSimpleDownloadCondition >, Transition< DlNormalFileState, &DlNormalFileState::sigFinished, FinishedState, DefaultStateCondition, &DlNormalFileState::transitionToFinished >, Transition< DlNormalFileState, &DlNormalFileState::sigFailed, FinishedState, DefaultStateCondition, &DlNormalFileState::transitionToFinished > >
 our known states: InitialState //< initial state before we start downloading DetectMetalinkState //< First attempt to get the zchunk header, but we might receive metalink data instead DlMetaLinkInfoState //< We got Metalink, lets get the full metalink file or we got no zchunk in the first place PrepareMultiState //< Parsing the metalink file and preparing the mirrors DLZckHeadState //< Download the ZChunk Header DLZckState //< Download the File in ZChunk Mode DlMetalinkState //< Download the File in Metalink Mode DlNormalFileState //< Simple Plain download, no chunking FinishedState //< We are done More...
 
using MetaDataType = zypp::media::MetaDataType
 
template<typename T >
using ProvidePromiseRef = std::shared_ptr< ProvidePromise< T > >
 
template<typename T >
using ProvidePromiseWeakRef = std::weak_ptr< ProvidePromise< T > >
 
using AnyMap = std::unordered_map< std::string, boost::any >
 

Enumerations

enum  { DefChunkSize = 4096 }
 
enum  { DefIoDeviceBufChunkSize = 16384 }
 
enum  UserRequestType : uint {
  UserRequestType::Message, UserRequestType::ListChoice, UserRequestType::BooleanChoice, UserRequestType::KeyTrust,
  UserRequestType::Custom = 512
}
 
enum  MessageCodes : uint32_t {
  NoCode = 0, FirstInformalCode = 100, ProvideStarted = 100, LastInformalCode = 199,
  FirstSuccessCode = 200, ProvideFinished = 200, AttachFinished = 201, AuthInfo = 202,
  MediaChanged = 203, DetachFinished = 204, LastSuccessCode = 299, FirstRedirCode = 300,
  Redirect = 300, Metalink = 301, LastRedirCode = 399, FirstClientErrCode = 400,
  BadRequest = 400, Unauthorized = 401, Forbidden = 402, PeerCertificateInvalid = 403,
  NotFound = 404, ExpectedSizeExceeded = 405, ConnectionFailed = 406, Timeout = 407,
  Cancelled = 408, InvalidChecksum = 409, MountFailed = 410, Jammed = 411,
  MediaChangeAbort = 412, MediaChangeSkip = 413, NoAuthData = 414, NotAFile = 415,
  MediumNotDesired = 416, LastClientErrCode = 499, FirstSrvErrCode = 500, InternalError = 500,
  ProtocolError = 501, LastSrvErrCode = 599, FirstControllerCode = 600, Prov = 600,
  Cancel = 601, Attach = 602, Detach = 603, LastControllerCode = 699,
  FirstWorkerCode = 700, AuthDataRequest = 700, MediaChangeRequest = 701, LastWorkerCode = 799
}
 

Functions

 ZYPP_IMPL_PRIVATE_CONSTR (Context)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Context)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProgressObserver)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Provide)
 
template<typename T >
auto joinPipeline (ContextRef ctx, AsyncOpRef< T > res)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (EventDispatcher)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (SyncContext)
 
std::ostream & operator<< (std::ostream &str, zypp::RepoManagerFlags::RawMetadataRefreshPolicy obj)
 
std::ostream & operator<< (std::ostream &str, zypp::RepoManagerFlags::RefreshCheckStatus obj)
 
std::ostream & operator<< (std::ostream &str, zypp::RepoManagerFlags::CacheBuildPolicy obj)
 
std::string filenameFromAlias (const std::string &alias_r, const std::string &stem_r)
 Generate a related filename from a repo/service infos alias. More...
 
expected< std::list< RepoInfo > > repositories_in_file (const zypp::Pathname &file)
 Reads RepoInfo's from a repo file. More...
 
template<typename ZContextRef >
std::list< RepoInforepositories_in_dir (ZContextRef zyppContext, const zypp::Pathname &dir)
 List of RepoInfo's from a directory. More...
 
expected< void > assert_urls (const RepoInfo &info)
 
bool autoPruneInDir (const zypp::Pathname &path_r)
 bsc#1204956: Tweak to prevent auto pruning package caches. More...
 
 ZYPP_FWD_DECL_TEMPL_TYPE_WITH_REFS_ARG1 (RepoManager, ZyppContextRefType)
 
bool isTmpRepo (const RepoInfo &info_r)
 Whether repo is not under RM control and provides its own methadata paths. More...
 
expected< void > assert_alias (const RepoInfo &info)
 
expected< void > assert_alias (const ServiceInfo &info)
 
template<class Iterator >
bool foundAliasIn (const std::string &alias_r, Iterator begin_r, Iterator end_r)
 Check if alias_r is present in repo/service container. More...
 
template<class Container >
bool foundAliasIn (const std::string &alias_r, const Container &cont_r)
 
template<class Iterator >
Iterator findAlias (const std::string &alias_r, Iterator begin_r, Iterator end_r)
 Find alias_r in repo/service container. More...
 
template<class Container >
Container::iterator findAlias (const std::string &alias_r, Container &cont_r)
 
template<class Container >
Container::const_iterator findAlias (const std::string &alias_r, const Container &cont_r)
 
expected< void > assert_url (const ServiceInfo &info)
 
expected< zypp::Pathnamerawcache_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info)
 Calculates the raw cache path for a repository, this is usually /var/cache/zypp/alias. More...
 
expected< zypp::Pathnamerawproductdata_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info)
 Calculates the raw product metadata path for a repository, this is inside the raw cache dir, plus an optional path where the metadata is. More...
 
expected< zypp::Pathnamepackagescache_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info)
 Calculates the packages cache path for a repository. More...
 
expected< zypp::Pathnamesolv_path_for_repoinfo (const RepoManagerOptions &opt, const RepoInfo &info)
 Calculates the solv cache path for a repository. More...
 
 ZYPP_FWD_DECL_REFS (Context)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (TrustKeyRequest, std::string label, KeyTrust trust, UserData userData)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (TrustKeyRequest)
 
 ZYPP_IMPL_PRIVATE_CONSTR (SyncContext)
 
template<typename T >
auto joinPipeline (SyncContextRef ctx, T &&val)
 
 ZYPP_FWD_DECL_REFS (AsyncCacheProviderContext)
 
 ZYPP_FWD_DECL_REFS (SyncCacheProviderContext)
 
 IMPL_PTR_TYPE (AttachedSyncMediaInfo)
 
 ZYPP_IMPL_PRIVATE_CONSTR (MediaSyncFacade)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (MediaSyncFacade)
 
 DEFINE_PTR_TYPE (AttachedSyncMediaInfo)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (AsyncOpBase)
 
template<typename T , bool isAsync = true>
std::conditional_t< isAsync, AsyncOpRef< T >, T > makeReadyResult (T &&result)
 
template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) base_slot (Obj *o, Functor &&f)
 
template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) base_slot (Obj &o, Functor &&f)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (UnixSignalSource)
 
static int readMask ()
 
static int writeMask ()
 
static int excpMask ()
 
static int evModeToMask (int mode)
 
static int gioConditionToEventTypes (const GIOCondition rEvents, const int requestedEvs)
 
static gboolean eventLoopIdleFunc (gpointer user_data)
 Called when the event loop is idle, here we run cleanup tasks and call later() callbacks of the user. More...
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (EventLoop)
 
bool blockAllSignalsForCurrentThread ()
 
bool blockSignalsForCurrentThread (const std::vector< int > &sigs)
 
bool trySocketConnection (int &sockFD, const SockAddr &addr, uint64_t timeout)
 
void renumberFd (int origfd, int newfd)
 
int64_t bytesAvailableOnFD (int fd)
 
std::string strerr_cxx (const int err=-1)
 
template<typename Fun , typename RestartCb , typename... Args>
auto eintrSafeCallEx (const Fun &function, const RestartCb &restartCb, Args &&... args)
 
template<typename Fun , typename... Args>
auto eintrSafeCall (Fun &&function, Args &&... args)
 
ThreadDatathreadData ()
 
constexpr bool DefaultStateCondition (true)
 
constexpr std::nullptr_t DefaultStateTransition (nullptr)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Timer)
 
 ZYPP_IMPL_PRIVATE (UnixSignalSource)
 
std::unique_ptr< zyppng::AbstractSpawnEngineengineFromEnv ()
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (IODevice)
 
 ZYPP_DECLARE_OPERATORS_FOR_FLAGS (IODevice::OpenMode)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Process)
 
template<class Transformation , class DefaultType , class Predicate >
auto firstOf (Transformation &&transformFunc, DefaultType &&def, Predicate &&predicate=detail::ContinueUntilValidPredicate())
 
template<typename ... Excpt>
bool containsOneOfException (const std::exception_ptr &exceptionPtr)
 
template<typename Excpt >
bool containsException (const std::exception_ptr &exceptionPtr)
 
template<typename T , typename SignalGetter >
auto await (SignalGetter &&sigGet)
 
template<typename Type , typename Err = std::exception_ptr>
static expected< std::decay_t< Type >, Err > make_expected_success (Type &&t)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType and_then (const expected< T, E > &exp, Function &&f)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType and_then (expected< T, E > &&exp, Function &&f)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType or_else (const expected< T, E > &exp, Function &&f)
 
template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType or_else (expected< T, E > &&exp, Function &&f)
 
template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t<!std::is_same_v< void, T >, expected< Container< T >, E > > collect (Container< expected< T, E >, CArgs... > &&in)
 
template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t< std::is_same_v< void, T >, expected< T, E > > collect (Container< expected< T, E >, CArgs... > &&in)
 
template<typename T , typename E , typename Function >
expected< T, E > inspect (expected< T, E > exp, Function &&f)
 
template<typename T , typename E , typename Function >
expected< T, E > inspect_err (expected< T, E > exp, Function &&f)
 
template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
auto transform_collect (Container< Msg, CArgs... > &&in, Transformation &&f)
 
template<typename Fun >
auto lift (Fun &&func)
 
template<typename F , typename ... Args, typename Ret = std::invoke_result_t<F, Args...>, typename Exp = expected<Ret, std::exception_ptr>>
Exp mtry (F &&f, Args &&...args)
 
template<typename Task , typename Pred >
auto redo_while (Task &&todo, Pred &&until)
 
template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container< Ret > transform (Container< Msg, CArgs... > &&val, Transformation &&transformation)
 
template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container< Ret > transform (const Container< Msg, CArgs... > &val, Transformation &&transformation)
 
auto waitFor ()
 
auto join ()
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (StompFrameStream)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ProgressObserver, const std::string &label, int steps)
 
 ZYPP_IMPL_PRIVATE_CONSTR (UserInterface)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (UserInterface)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (UserRequest)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ShowMessageRequest, std::string message, MType mType, UserData data)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (ListChoiceRequest, std::string label, std::vector< Choice > answers, index_type defaultAnswer, UserData userData)
 
 ZYPP_IMPL_PRIVATE_CONSTR_ARGS (BooleanChoiceRequest, std::string label, const bool defaultAnswer, UserData userData)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ShowMessageRequest)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ListChoiceRequest)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (BooleanChoiceRequest)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Downloader)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (Download)
 
static const std::string & defaultAgentString ()
 
 ZYPP_IMPL_PRIVATE (NetworkRequestError)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (SuseMediaDataVerifier)
 
std::ostream & operator<< (std::ostream &str, const MediaDataVerifierRef &obj)
 
 DEFINE_PTR_TYPE (AttachedMediaInfo)
 
bool provideDebugEnabled ()
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideQueue)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideWorker)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideFileItem)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (AttachMediaItem)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (DetachMediaItem)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideRequest)
 
constexpr std::string_view AGENT_STRING_CONF ("zconfig://media/UserAgent")
 
constexpr std::string_view DISTRO_FLAV_CONF ("zconfig://media/DistributionFlavor")
 
constexpr std::string_view ANON_ID_CONF ("zconfig://media/AnonymousId")
 
constexpr std::string_view ATTACH_POINT ("zconfig://media/AttachPoint")
 
constexpr std::string_view PROVIDER_ROOT ("zconfig://media/ProviderRoot")
 
constexpr std::string_view NETWORK_METALINK_ENABLED ("zypp-nw-metalink-enabled")
 
constexpr std::string_view HANDLER_SPECIFIC_DEVICES ("zypp-req-specific-devices")
 
 ZYPP_IMPL_PRIVATE (Provide)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideMediaSpec)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideFileSpec)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideItem)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (MediaDataVerifier)
 
 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProvideStatus)
 
static constexpr std::string_view DEFAULT_MEDIA_VERIFIER ("SuseMediaV1")
 
 ZYPP_IMPL_PRIVATE (ProvideItem)
 
template<typename T >
static zyppng::expected< void > doParseField (const std::string &val, ProvideMessage &t, std::string_view msgtype, std::string_view name)
 
std::ostream & operator<< (std::ostream &str, const ProvideFileSpec &obj)
 
std::ostream & dumpOn (std::ostream &str, const ProvideFileSpec &obj)
 

Variables

static GSourceFuncs abstractEventSourceFuncs
 
static GSourceFuncs glibTimerSourceFuncs
 
constexpr auto MAX_CMDLEN = 256
 
constexpr auto MAX_HDRLEN = 8 * 1024
 
constexpr auto MAX_BODYLEN = 1024 * 1024
 
constexpr uint penaltyIncrease = 100
 
constexpr uint defaultSampleTime = 2
 
constexpr uint defaultMaxConnections = 5
 
constexpr std::string_view CurlNativeErrorCodeDescKey = "nativeErrorCodeDesc"
 
constexpr std::string_view CurlNativeErrorDescKey = "nativeErrorDesc"
 

Detailed Description

Fix bsc#1174011 "auth=basic ignored in some cases" for provider We should proactively add the password to the request if basic auth is configured and a password is available in the credentials but not in the URL.

We should be a bit paranoid here and require that the URL has a user embedded, otherwise we go the default route and ask the server first about the auth method

Make sure URLs are rewritten, e.g. MediaSetAccess::rewriteUrl

Typedef Documentation

◆ KeyRing

Definition at line 28 of file context.h.

◆ KeyRingRef

typedef zypp::KeyRing_Ptr zyppng::KeyRingRef

Definition at line 29 of file context.h.

◆ AsyncLazyMediaHandle

◆ SyncLazyMediaHandle

◆ RepoInfo

Definition at line 36 of file repomanager.h.

◆ RepoStatus

Definition at line 37 of file repomanager.h.

◆ RepoInfoList

using zyppng::RepoInfoList = typedef zypp::RepoInfoList
related

Definition at line 38 of file repomanager.h.

◆ ServiceInfo

Definition at line 39 of file repomanager.h.

◆ RepoManagerOptions

Definition at line 40 of file repomanager.h.

◆ SyncRepoManager

using zyppng::SyncRepoManager = typedef RepoManager<SyncContextRef>

Definition at line 47 of file repomanager.h.

◆ SyncRepoManagerRef

using zyppng::SyncRepoManagerRef = typedef RepoManagerRef<SyncContextRef>

Definition at line 48 of file repomanager.h.

◆ AsyncRepoManager

using zyppng::AsyncRepoManager = typedef RepoManager<ContextRef>

Definition at line 50 of file repomanager.h.

◆ AsyncRepoManagerRef

using zyppng::AsyncRepoManagerRef = typedef RepoManagerRef<ContextRef>

Definition at line 51 of file repomanager.h.

◆ MaybeAsyncContextRef

template<typename OpType >
using zyppng::MaybeAsyncContextRef = typedef std::conditional_t<detail::is_async_op_v<OpType>, ContextRef, SyncContextRef>

Definition at line 51 of file contextfacade.h.

◆ AsyncCacheProviderContext

Definition at line 52 of file downloadwf.h.

◆ SyncCacheProviderContext

using zyppng::SyncCacheProviderContext = typedef CacheProviderContext<SyncContextRef>

Definition at line 53 of file downloadwf.h.

◆ SyncProvideRes

Definition at line 124 of file mediafacade.h.

◆ AsyncOpRef

template<typename T >
using zyppng::AsyncOpRef = typedef std::shared_ptr<AsyncOp<T> >

Definition at line 255 of file asyncop.h.

◆ connection

using zyppng::connection = typedef sigc::connection

Definition at line 180 of file signals.h.

◆ trackable

using zyppng::trackable = typedef sigc::trackable

Definition at line 181 of file signals.h.

◆ SignalProxyBase

template<class R , class... T>
using zyppng::SignalProxyBase = typedef sigc::signal<R(T...)>

Definition at line 185 of file signals.h.

◆ Ref

template<typename T >
using zyppng::Ref = typedef std::shared_ptr<T>

Definition at line 110 of file zyppglobal.h.

◆ WeakRef

template<typename T >
using zyppng::WeakRef = typedef std::weak_ptr<T>

Definition at line 113 of file zyppglobal.h.

◆ ByteArray

Definition at line 21 of file bytearray.h.

◆ UByteArray

Definition at line 22 of file bytearray.h.

◆ IdString

Definition at line 16 of file idstring.h.

◆ IdStringSet

Definition at line 17 of file idstring.h.

◆ Url

using zyppng::Url = typedef zypp::Url

Definition at line 15 of file url.h.

◆ has_call_operator

template<typename T >
using zyppng::has_call_operator = typedef decltype (&T::operator())

Definition at line 69 of file function_traits.h.

◆ remove_smart_ptr_t

template<typename T >
using zyppng::remove_smart_ptr_t = typedef typename remove_smart_ptr<T>::type

Definition at line 128 of file type_traits.h.

◆ UserData

Definition at line 18 of file userrequest.h.

◆ ContentType

Definition at line 19 of file userrequest.h.

◆ AuthData

Definition at line 21 of file authdata.h.

◆ AuthData_Ptr

Definition at line 22 of file authdata.h.

◆ NetworkAuthData

Definition at line 24 of file authdata.h.

◆ NetworkAuthData_Ptr

Definition at line 25 of file authdata.h.

◆ TransferSettings

◆ DownloadStatemachine

template<typename Derived >
using zyppng::DownloadStatemachine = typedef Statemachine< Derived, Download::State, Transition< InitialState, &InitialState::sigTransitionToDetectMetalinkState, DetectMetalinkState >, Transition< InitialState, &InitialState::sigTransitionToDlMetaLinkInfoState, DlMetaLinkInfoState >, Transition< InitialState, &InitialState::sigTransitionToDlNormalFileState, DlNormalFileState >, Transition< DetectMetalinkState, &DetectMetalinkState::sigFinished, DlMetaLinkInfoState, &DetectMetalinkState::toMetalinkGuard, &DetectMetalinkState::toDlMetaLinkInfoState >, Transition< DetectMetalinkState, &DetectMetalinkState::sigFinished, DlNormalFileState, &DetectMetalinkState::toSimpleDownloadGuard >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigFinished, FinishedState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToFinished >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigGotMetadata, PrepareMultiState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToPrepareMulti >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigFailed, FinishedState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToFinished >, Transition< PrepareMultiState, &PrepareMultiState::sigFinished, DlMetalinkState, &PrepareMultiState::toMetalinkDownloadGuard , &PrepareMultiState::transitionToMetalinkDl >, Transition< PrepareMultiState, &PrepareMultiState::sigFallback, DlNormalFileState, DefaultStateCondition, &PrepareMultiState::fallbackToNormalTransition >, Transition< PrepareMultiState, &PrepareMultiState::sigFailed, DlNormalFileState >, Transition< DlMetalinkState, &DlMetalinkState::sigFinished, FinishedState, DefaultStateCondition, &DlMetalinkState::transitionToFinished >, Transition< DlMetalinkState, &DlMetalinkState::sigFailed, FinishedState, &DlMetalinkState::toFinalStateCondition, &DlMetalinkState::transitionToFinished >, Transition< DlMetalinkState, &DlMetalinkState::sigFailed, DlNormalFileState, &DlMetalinkState::toSimpleDownloadCondition >, Transition< DlNormalFileState, &DlNormalFileState::sigFinished, FinishedState, DefaultStateCondition, &DlNormalFileState::transitionToFinished >, Transition< DlNormalFileState, &DlNormalFileState::sigFailed, FinishedState, DefaultStateCondition, &DlNormalFileState::transitionToFinished > >

our known states: InitialState //< initial state before we start downloading DetectMetalinkState //< First attempt to get the zchunk header, but we might receive metalink data instead DlMetaLinkInfoState //< We got Metalink, lets get the full metalink file or we got no zchunk in the first place PrepareMultiState //< Parsing the metalink file and preparing the mirrors DLZckHeadState //< Download the ZChunk Header DLZckState //< Download the File in ZChunk Mode DlMetalinkState //< Download the File in Metalink Mode DlNormalFileState //< Simple Plain download, no chunking FinishedState //< We are done

Definition at line 87 of file downloader_p.h.

◆ MetaDataType

Definition at line 27 of file metalinkinfo_p.h.

◆ ProvidePromiseRef

template<typename T >
using zyppng::ProvidePromiseRef = typedef std::shared_ptr<ProvidePromise<T> >

Definition at line 31 of file providefwd_p.h.

◆ ProvidePromiseWeakRef

template<typename T >
using zyppng::ProvidePromiseWeakRef = typedef std::weak_ptr<ProvidePromise<T> >

Definition at line 33 of file providefwd_p.h.

◆ AnyMap

using zyppng::AnyMap = typedef std::unordered_map<std::string, boost::any>

Definition at line 45 of file provide.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DefChunkSize 

Definition at line 7 of file iobuffer.cc.

◆ anonymous enum

anonymous enum
Enumerator
DefIoDeviceBufChunkSize 

Definition at line 31 of file iodevice_p.h.

◆ UserRequestType

enum zyppng::UserRequestType : uint
strong
Enumerator
Message 
ListChoice 
BooleanChoice 
KeyTrust 
Custom 

Definition at line 34 of file userrequest.h.

◆ MessageCodes

enum zyppng::MessageCodes : uint32_t
Enumerator
NoCode 
FirstInformalCode 
ProvideStarted 
LastInformalCode 
FirstSuccessCode 
ProvideFinished 
AttachFinished 
AuthInfo 
MediaChanged 
DetachFinished 
LastSuccessCode 
FirstRedirCode 
Redirect 
Metalink 
LastRedirCode 
FirstClientErrCode 
BadRequest 
Unauthorized 
Forbidden 
PeerCertificateInvalid 
NotFound 
ExpectedSizeExceeded 
ConnectionFailed 
Timeout 
Cancelled 
InvalidChecksum 
MountFailed 
Jammed 
MediaChangeAbort 
MediaChangeSkip 
NoAuthData 
NotAFile 
MediumNotDesired 
LastClientErrCode 
FirstSrvErrCode 
InternalError 
ProtocolError 
LastSrvErrCode 
FirstControllerCode 
Prov 
Cancel 
Attach 
Detach 
LastControllerCode 
FirstWorkerCode 
AuthDataRequest 
MediaChangeRequest 
LastWorkerCode 

Definition at line 308 of file providemessage_p.h.

Function Documentation

◆ ZYPP_IMPL_PRIVATE_CONSTR() [1/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( Context  )

Definition at line 19 of file context.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [1/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Context  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [2/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProgressObserver  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [3/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Provide  )

◆ joinPipeline() [1/2]

template<typename T >
auto zyppng::joinPipeline ( ContextRef  ctx,
AsyncOpRef< T >  res 
)

Definition at line 81 of file context.h.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [4/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( EventDispatcher  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [5/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( SyncContext  )

◆ operator<<() [1/5]

std::ostream& zyppng::operator<< ( std::ostream &  str,
zypp::RepoManagerFlags::RawMetadataRefreshPolicy  obj 
)

Definition at line 101 of file repomanager.cc.

◆ operator<<() [2/5]

std::ostream& zyppng::operator<< ( std::ostream &  str,
zypp::RepoManagerFlags::RefreshCheckStatus  obj 
)

Definition at line 113 of file repomanager.cc.

◆ operator<<() [3/5]

std::ostream& zyppng::operator<< ( std::ostream &  str,
zypp::RepoManagerFlags::CacheBuildPolicy  obj 
)

Definition at line 125 of file repomanager.cc.

◆ filenameFromAlias()

std::string zyppng::filenameFromAlias ( const std::string &  alias_r,
const std::string &  stem_r 
)

Generate a related filename from a repo/service infos alias.

Definition at line 137 of file repomanager.cc.

◆ repositories_in_file()

expected< std::list< RepoInfo > > zyppng::repositories_in_file ( const zypp::Pathname file)

Reads RepoInfo's from a repo file.

Parameters
filepathname of the file to read.

Definition at line 167 of file repomanager.cc.

◆ repositories_in_dir()

template<typename ZContextRef >
std::list<RepoInfo> zyppng::repositories_in_dir ( ZContextRef  zyppContext,
const zypp::Pathname dir 
)

List of RepoInfo's from a directory.

Goes trough every file ending with ".repo" in a directory and adds all RepoInfo's contained in that file.

Parameters
zyppContextcurrent context used for reports
dirpathname of the directory to read.

Definition at line 189 of file repomanager.cc.

◆ assert_urls()

expected< void > zyppng::assert_urls ( const RepoInfo info)

Definition at line 227 of file repomanager.cc.

◆ autoPruneInDir()

bool zyppng::autoPruneInDir ( const zypp::Pathname path_r)

bsc#1204956: Tweak to prevent auto pruning package caches.

Definition at line 234 of file repomanager.cc.

◆ ZYPP_FWD_DECL_TEMPL_TYPE_WITH_REFS_ARG1()

zyppng::ZYPP_FWD_DECL_TEMPL_TYPE_WITH_REFS_ARG1 ( RepoManager  ,
ZyppContextRefType   
)

◆ isTmpRepo()

bool zyppng::isTmpRepo ( const RepoInfo info_r)
inline

Whether repo is not under RM control and provides its own methadata paths.

Definition at line 54 of file repomanager.h.

◆ assert_alias() [1/2]

expected<void> zyppng::assert_alias ( const RepoInfo info)
inline

Definition at line 57 of file repomanager.h.

◆ assert_alias() [2/2]

expected<void> zyppng::assert_alias ( const ServiceInfo info)
inline

Definition at line 70 of file repomanager.h.

◆ foundAliasIn() [1/2]

template<class Iterator >
bool zyppng::foundAliasIn ( const std::string &  alias_r,
Iterator  begin_r,
Iterator  end_r 
)
inline

Check if alias_r is present in repo/service container.

Definition at line 84 of file repomanager.h.

◆ foundAliasIn() [2/2]

template<class Container >
bool zyppng::foundAliasIn ( const std::string &  alias_r,
const Container &  cont_r 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 93 of file repomanager.h.

◆ findAlias() [1/3]

template<class Iterator >
Iterator zyppng::findAlias ( const std::string &  alias_r,
Iterator  begin_r,
Iterator  end_r 
)
inline

Find alias_r in repo/service container.

Definition at line 98 of file repomanager.h.

◆ findAlias() [2/3]

template<class Container >
Container::iterator zyppng::findAlias ( const std::string &  alias_r,
Container &  cont_r 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 107 of file repomanager.h.

◆ findAlias() [3/3]

template<class Container >
Container::const_iterator zyppng::findAlias ( const std::string &  alias_r,
const Container &  cont_r 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 111 of file repomanager.h.

◆ assert_url()

expected<void> zyppng::assert_url ( const ServiceInfo info)
inline

Definition at line 160 of file repomanager.h.

◆ rawcache_path_for_repoinfo()

expected<zypp::Pathname> zyppng::rawcache_path_for_repoinfo ( const RepoManagerOptions opt,
const RepoInfo info 
)
inline

Calculates the raw cache path for a repository, this is usually /var/cache/zypp/alias.

Definition at line 171 of file repomanager.h.

◆ rawproductdata_path_for_repoinfo()

expected<zypp::Pathname> zyppng::rawproductdata_path_for_repoinfo ( const RepoManagerOptions opt,
const RepoInfo info 
)
inline

Calculates the raw product metadata path for a repository, this is inside the raw cache dir, plus an optional path where the metadata is.

It should be different only for repositories that are not in the root of the media. for example /var/cache/zypp/alias/addondir

Definition at line 185 of file repomanager.h.

◆ packagescache_path_for_repoinfo()

expected<zypp::Pathname> zyppng::packagescache_path_for_repoinfo ( const RepoManagerOptions opt,
const RepoInfo info 
)
inline

Calculates the packages cache path for a repository.

Definition at line 194 of file repomanager.h.

◆ solv_path_for_repoinfo()

expected<zypp::Pathname> zyppng::solv_path_for_repoinfo ( const RepoManagerOptions opt,
const RepoInfo info 
)
inline

Calculates the solv cache path for a repository.

Definition at line 204 of file repomanager.h.

◆ ZYPP_FWD_DECL_REFS() [1/3]

zyppng::ZYPP_FWD_DECL_REFS ( Context  )

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [1/5]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( TrustKeyRequest  ,
std::string  label,
KeyTrust  trust,
UserData  userData 
)

Definition at line 34 of file userrequest.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [6/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( TrustKeyRequest  )

◆ ZYPP_IMPL_PRIVATE_CONSTR() [2/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( SyncContext  )

Definition at line 14 of file contextfacade.cc.

◆ joinPipeline() [2/2]

template<typename T >
auto zyppng::joinPipeline ( SyncContextRef  ctx,
T &&  val 
)

Definition at line 54 of file contextfacade.h.

◆ ZYPP_FWD_DECL_REFS() [2/3]

zyppng::ZYPP_FWD_DECL_REFS ( AsyncCacheProviderContext  )

◆ ZYPP_FWD_DECL_REFS() [3/3]

zyppng::ZYPP_FWD_DECL_REFS ( SyncCacheProviderContext  )

◆ IMPL_PTR_TYPE()

zyppng::IMPL_PTR_TYPE ( AttachedSyncMediaInfo  )

◆ ZYPP_IMPL_PRIVATE_CONSTR() [3/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( MediaSyncFacade  )

Definition at line 153 of file mediafacade.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [7/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( MediaSyncFacade  )

◆ DEFINE_PTR_TYPE() [1/2]

zyppng::DEFINE_PTR_TYPE ( AttachedSyncMediaInfo  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [8/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( AsyncOpBase  )

◆ makeReadyResult()

template<typename T , bool isAsync = true>
std::conditional_t<isAsync, AsyncOpRef<T>, T> zyppng::makeReadyResult ( T &&  result)

Is isAsync is true returns a AsyncOpRef that is always ready, containing the result as its final value, otherwise the value passed to the function is just forwarded.

Definition at line 297 of file asyncop.h.

◆ base_slot() [1/2]

template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) zyppng::base_slot ( Obj *  o,
Functor &&  f 
)
inline

Definition at line 181 of file base.h.

◆ base_slot() [2/2]

template<typename Obj , typename Functor , std::enable_if_t< std::is_base_of_v< Base, Obj >||std::is_base_of_v< BasePrivate, Obj >, bool > = true>
decltype(auto) zyppng::base_slot ( Obj &  o,
Functor &&  f 
)
inline

Definition at line 189 of file base.h.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [9/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( UnixSignalSource  )

◆ readMask()

static int zyppng::readMask ( )
inlinestatic

Definition at line 13 of file eventdispatcher_glib.cc.

◆ writeMask()

static int zyppng::writeMask ( )
inlinestatic

Definition at line 17 of file eventdispatcher_glib.cc.

◆ excpMask()

static int zyppng::excpMask ( )
inlinestatic

Definition at line 21 of file eventdispatcher_glib.cc.

◆ evModeToMask()

static int zyppng::evModeToMask ( int  mode)
inlinestatic

Definition at line 25 of file eventdispatcher_glib.cc.

◆ gioConditionToEventTypes()

static int zyppng::gioConditionToEventTypes ( const GIOCondition  rEvents,
const int  requestedEvs 
)
inlinestatic

Definition at line 39 of file eventdispatcher_glib.cc.

◆ eventLoopIdleFunc()

static gboolean zyppng::eventLoopIdleFunc ( gpointer  user_data)
static

Called when the event loop is idle, here we run cleanup tasks and call later() callbacks of the user.

Definition at line 231 of file eventdispatcher_glib.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [10/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( EventLoop  )

◆ blockAllSignalsForCurrentThread()

bool zyppng::blockAllSignalsForCurrentThread ( )

Definition at line 15 of file linuxhelpers.cc.

◆ blockSignalsForCurrentThread()

bool zyppng::blockSignalsForCurrentThread ( const std::vector< int > &  sigs)

Definition at line 23 of file linuxhelpers.cc.

◆ trySocketConnection()

bool zyppng::trySocketConnection ( int &  sockFD,
const SockAddr addr,
uint64_t  timeout 
)

Definition at line 34 of file linuxhelpers.cc.

◆ renumberFd()

void zyppng::renumberFd ( int  origfd,
int  newfd 
)

Definition at line 50 of file linuxhelpers.cc.

◆ bytesAvailableOnFD()

int64_t zyppng::bytesAvailableOnFD ( int  fd)

Tries to use the FIONREAD ioctl to detect how many bytes are available on a file descriptor, this can fail and return 0 so just use it as a indicator on how many bytes are pending

Definition at line 62 of file linuxhelpers.cc.

◆ strerr_cxx()

std::string zyppng::strerr_cxx ( const int  err = -1)
inline

Definition at line 14 of file linuxhelpers_p.h.

◆ eintrSafeCallEx()

template<typename Fun , typename RestartCb , typename... Args>
auto zyppng::eintrSafeCallEx ( const Fun &  function,
const RestartCb &  restartCb,
Args &&...  args 
)

Extended version of eintrSafeCall

Calls a given function in a EINTR safe way. The restartCb is invoked after every time we have to restart function because of EINTR, it can be used to reset additional errors:

FILE *myFile;
// open file
// ...
eintrSafeCall( ::getline, [&](){ ::clearerr(myFile); }, myFile );

Definition at line 35 of file linuxhelpers_p.h.

◆ eintrSafeCall()

template<typename Fun , typename... Args>
auto zyppng::eintrSafeCall ( Fun &&  function,
Args &&...  args 
)

Definition at line 50 of file linuxhelpers_p.h.

◆ threadData()

ThreadData& zyppng::threadData ( )

◆ DefaultStateCondition()

constexpr bool zyppng::DefaultStateCondition ( true  )

◆ DefaultStateTransition()

constexpr std::nullptr_t zyppng::DefaultStateTransition ( nullptr  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [11/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Timer  )

◆ ZYPP_IMPL_PRIVATE() [1/4]

zyppng::ZYPP_IMPL_PRIVATE ( UnixSignalSource  )

◆ engineFromEnv()

std::unique_ptr<zyppng::AbstractSpawnEngine> zyppng::engineFromEnv ( )

Definition at line 51 of file abstractspawnengine.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [12/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( IODevice  )

◆ ZYPP_DECLARE_OPERATORS_FOR_FLAGS()

zyppng::ZYPP_DECLARE_OPERATORS_FOR_FLAGS ( IODevice::OpenMode  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [13/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Process  )

◆ firstOf()

template<class Transformation , class DefaultType , class Predicate >
auto zyppng::firstOf ( Transformation &&  transformFunc,
DefaultType &&  def,
Predicate &&  predicate = detail::ContinueUntilValidPredicate() 
)
inline

Definition at line 149 of file algorithm.h.

◆ containsOneOfException()

template<typename ... Excpt>
bool zyppng::containsOneOfException ( const std::exception_ptr &  exceptionPtr)

Checks if a given std::exception_ptr contains one of the given exception types in the template arguments:

expected<int> result = someFuncReturningExpected();
if ( !result && containsOneOfException<zypp::FileNotFoundException, SomeOtherException>( result.error() ) ) {
std::cout << "Contains either zypp::FileNotFoundException or SomeOtherException" << std::endl;
}

Detects exceptions by throwing and catching them, so always pass the specific exception types to check for..

Definition at line 187 of file algorithm.h.

◆ containsException()

template<typename Excpt >
bool zyppng::containsException ( const std::exception_ptr &  exceptionPtr)

Checks if a given std::exception_ptr contains the given exception type in the template type argument:

expected<int> result = someFuncReturningExpected();
if ( !result && containsException<zypp::FileNotFoundException>( result.error() ) ) {
std::cout << "Contains zypp::FileNotFoundException" << std::endl;
}

Definition at line 208 of file algorithm.h.

◆ await()

template<typename T , typename SignalGetter >
auto zyppng::await ( SignalGetter &&  sigGet)

Definition at line 64 of file await.h.

◆ make_expected_success()

template<typename Type , typename Err = std::exception_ptr>
static expected<std::decay_t<Type>,Err> zyppng::make_expected_success ( Type &&  t)
static

Definition at line 397 of file expected.h.

◆ and_then() [1/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType zyppng::and_then ( const expected< T, E > &  exp,
Function &&  f 
)

Definition at line 423 of file expected.h.

◆ and_then() [2/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, T>>
ResultType zyppng::and_then ( expected< T, E > &&  exp,
Function &&  f 
)

Definition at line 443 of file expected.h.

◆ or_else() [1/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType zyppng::or_else ( const expected< T, E > &  exp,
Function &&  f 
)

Definition at line 463 of file expected.h.

◆ or_else() [2/2]

template<typename T , typename E , typename Function , typename ResultType = detail::mbind_cb_result_t<Function, E>>
ResultType zyppng::or_else ( expected< T, E > &&  exp,
Function &&  f 
)

Definition at line 480 of file expected.h.

◆ collect() [1/2]

template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t<!std::is_same_v<void, T>, expected<Container<T>,E> > zyppng::collect ( Container< expected< T, E >, CArgs... > &&  in)

Collects all values from a Container of expected values, returning the contained values or the first error encountered as a expected<Container<T>>

Definition at line 501 of file expected.h.

◆ collect() [2/2]

template<template< class, class... > class Container, typename T , typename E , typename ... CArgs>
std::enable_if_t<std::is_same_v<void, T>, expected<T, E> > zyppng::collect ( Container< expected< T, E >, CArgs... > &&  in)

Specialization of collect working on a Container of expected<void> values, returning either success or the error encountered.

Definition at line 519 of file expected.h.

◆ inspect()

template<typename T , typename E , typename Function >
expected<T, E> zyppng::inspect ( expected< T, E >  exp,
Function &&  f 
)

Definition at line 531 of file expected.h.

◆ inspect_err()

template<typename T , typename E , typename Function >
expected<T, E> zyppng::inspect_err ( expected< T, E >  exp,
Function &&  f 
)

Definition at line 544 of file expected.h.

◆ transform_collect()

template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
auto zyppng::transform_collect ( Container< Msg, CArgs... > &&  in,
Transformation &&  f 
)

This is logically the same as

, but the inner loop will stop waiting / transforming as soon as a error is encountered and returns the error right away.

Definition at line 666 of file expected.h.

◆ lift()

template<typename Fun >
auto zyppng::lift ( Fun &&  func)

Definition at line 74 of file lift.h.

◆ mtry()

template<typename F , typename ... Args, typename Ret = std::invoke_result_t<F, Args...>, typename Exp = expected<Ret, std::exception_ptr>>
Exp zyppng::mtry ( F &&  f,
Args &&...  args 
)

Definition at line 28 of file mtry.h.

◆ redo_while()

template<typename Task , typename Pred >
auto zyppng::redo_while ( Task &&  todo,
Pred &&  until 
)

Definition at line 142 of file redo.h.

◆ transform() [1/2]

template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container<Ret> zyppng::transform ( Container< Msg, CArgs... > &&  val,
Transformation &&  transformation 
)

Definition at line 31 of file transform.h.

◆ transform() [2/2]

template<template< class, class... > class Container, typename Msg , typename Transformation , typename Ret = std::result_of_t<Transformation(Msg)>, typename ... CArgs>
Container<Ret> zyppng::transform ( const Container< Msg, CArgs... > &  val,
Transformation &&  transformation 
)

Definition at line 43 of file transform.h.

◆ waitFor()

auto zyppng::waitFor ( )
inline

Returns a async operation that waits for all async operations which are passed to it and collects their results, forwarding them as one

Definition at line 129 of file wait.h.

◆ join()

auto zyppng::join ( )
inline

Definition at line 133 of file wait.h.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [14/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( StompFrameStream  )

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [2/5]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( ProgressObserver  ,
const std::string &  label,
int  steps 
)

Definition at line 136 of file progressobserver.cc.

◆ ZYPP_IMPL_PRIVATE_CONSTR() [4/4]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR ( UserInterface  )

Definition at line 17 of file userinterface.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [15/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( UserInterface  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [16/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( UserRequest  )

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [3/5]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( ShowMessageRequest  ,
std::string  message,
MType  mType,
UserData  data 
)

Definition at line 32 of file userrequest.cc.

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [4/5]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( ListChoiceRequest  ,
std::string  label,
std::vector< Choice >  answers,
index_type  defaultAnswer,
UserData  userData 
)

Definition at line 53 of file userrequest.cc.

◆ ZYPP_IMPL_PRIVATE_CONSTR_ARGS() [5/5]

zyppng::ZYPP_IMPL_PRIVATE_CONSTR_ARGS ( BooleanChoiceRequest  ,
std::string  label,
const bool  defaultAnswer,
UserData  userData 
)

Definition at line 93 of file userrequest.cc.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [17/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ShowMessageRequest  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [18/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ListChoiceRequest  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [19/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( BooleanChoiceRequest  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [20/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Downloader  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [21/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( Download  )

◆ defaultAgentString()

static const std::string& zyppng::defaultAgentString ( )
static

Definition at line 31 of file networkrequestdispatcher.cc.

◆ ZYPP_IMPL_PRIVATE() [2/4]

zyppng::ZYPP_IMPL_PRIVATE ( NetworkRequestError  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [22/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( SuseMediaDataVerifier  )

◆ operator<<() [4/5]

std::ostream& zyppng::operator<< ( std::ostream &  str,
const MediaDataVerifierRef &  obj 
)

Definition at line 130 of file mediaverifier.cc.

◆ DEFINE_PTR_TYPE() [2/2]

zyppng::DEFINE_PTR_TYPE ( AttachedMediaInfo  )

◆ provideDebugEnabled()

bool zyppng::provideDebugEnabled ( )
inline

Definition at line 28 of file providedbg_p.h.

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [23/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideQueue  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [24/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideWorker  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [25/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideFileItem  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [26/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( AttachMediaItem  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [27/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( DetachMediaItem  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [28/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideRequest  )

◆ AGENT_STRING_CONF()

constexpr std::string_view zyppng::AGENT_STRING_CONF ( "zconfig://media/UserAgent"  )

◆ DISTRO_FLAV_CONF()

constexpr std::string_view zyppng::DISTRO_FLAV_CONF ( "zconfig://media/DistributionFlavor"  )

◆ ANON_ID_CONF()

constexpr std::string_view zyppng::ANON_ID_CONF ( "zconfig://media/AnonymousId"  )

◆ ATTACH_POINT()

constexpr std::string_view zyppng::ATTACH_POINT ( "zconfig://media/AttachPoint"  )

◆ PROVIDER_ROOT()

constexpr std::string_view zyppng::PROVIDER_ROOT ( "zconfig://media/ProviderRoot"  )

◆ NETWORK_METALINK_ENABLED()

constexpr std::string_view zyppng::NETWORK_METALINK_ENABLED ( "zypp-nw-metalink-enabled"  )

◆ HANDLER_SPECIFIC_DEVICES()

constexpr std::string_view zyppng::HANDLER_SPECIFIC_DEVICES ( "zypp-req-specific-devices"  )

◆ ZYPP_IMPL_PRIVATE() [3/4]

zyppng::ZYPP_IMPL_PRIVATE ( Provide  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [29/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideMediaSpec  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [30/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideFileSpec  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [31/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideItem  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [32/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( MediaDataVerifier  )

◆ ZYPP_FWD_DECL_TYPE_WITH_REFS() [33/33]

zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS ( ProvideStatus  )

◆ DEFAULT_MEDIA_VERIFIER()

static constexpr std::string_view zyppng::DEFAULT_MEDIA_VERIFIER ( "SuseMediaV1"  )
static

◆ ZYPP_IMPL_PRIVATE() [4/4]

zyppng::ZYPP_IMPL_PRIVATE ( ProvideItem  )

◆ doParseField()

template<typename T >
static zyppng::expected<void> zyppng::doParseField ( const std::string &  val,
ProvideMessage t,
std::string_view  msgtype,
std::string_view  name 
)
static

Definition at line 132 of file providemessage.cc.

◆ operator<<() [5/5]

std::ostream& zyppng::operator<< ( std::ostream &  str,
const ProvideFileSpec obj 
)

Definition at line 282 of file providespec.cc.

◆ dumpOn()

std::ostream& zyppng::dumpOn ( std::ostream &  str,
const ProvideFileSpec obj 
)

Definition at line 285 of file providespec.cc.

Variable Documentation

◆ abstractEventSourceFuncs

GSourceFuncs zyppng::abstractEventSourceFuncs
static
Initial value:
= {
GAbstractEventSource::prepare,
GAbstractEventSource::dispatch,
nullptr,
nullptr,
nullptr
}
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.

Definition at line 54 of file eventdispatcher_glib.cc.

◆ glibTimerSourceFuncs

GSourceFuncs zyppng::glibTimerSourceFuncs
static
Initial value:
= {
GLibTimerSource::prepare,
GLibTimerSource::dispatch,
nullptr,
nullptr,
nullptr
}
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.

Definition at line 163 of file eventdispatcher_glib.cc.

◆ MAX_CMDLEN

constexpr auto zyppng::MAX_CMDLEN = 256

Definition at line 19 of file stompframestream.cc.

◆ MAX_HDRLEN

constexpr auto zyppng::MAX_HDRLEN = 8 * 1024

Definition at line 20 of file stompframestream.cc.

◆ MAX_BODYLEN

constexpr auto zyppng::MAX_BODYLEN = 1024 * 1024

Definition at line 21 of file stompframestream.cc.

◆ penaltyIncrease

constexpr uint zyppng::penaltyIncrease = 100

Definition at line 18 of file mirrorcontrol.cc.

◆ defaultSampleTime

constexpr uint zyppng::defaultSampleTime = 2

Definition at line 19 of file mirrorcontrol.cc.

◆ defaultMaxConnections

constexpr uint zyppng::defaultMaxConnections = 5

Definition at line 20 of file mirrorcontrol.cc.

◆ CurlNativeErrorCodeDescKey

constexpr std::string_view zyppng::CurlNativeErrorCodeDescKey = "nativeErrorCodeDesc"

Definition at line 20 of file networkrequesterror.cc.

◆ CurlNativeErrorDescKey

constexpr std::string_view zyppng::CurlNativeErrorDescKey = "nativeErrorDesc"

Definition at line 21 of file networkrequesterror.cc.