libzypp  17.30.2
zypp::media Namespace Reference

Classes

class  MediaCD
 Implementation class for CD/DVD MediaHandler. More...
 
class  MediaCIFS
 Implementation class for CIFS MediaHandler. More...
 
class  MediaCurl
 Implementation class for FTP, HTTP and HTTPS MediaHandler. More...
 
class  MediaDIR
 Implementation class for DIR MediaHandler. More...
 
class  MediaDISK
 Implementation class for DISK MediaHandler. More...
 
class  MediaHandler
 Abstract base class for 'physical' MediaHandler like MediaCD, etc. More...
 
class  MediaHandlerFactory
 
class  MediaISO
 Implementation class for ISO MediaHandler. More...
 
class  MediaManager_Impl
 
class  MediaVerifierBase
 Interface to implement a media verifier. More...
 
class  NoVerifier
 Dummy default media verifier, which is always happy. More...
 
class  MediaManager
 Manages access to the 'physical' media, e.g CDROM drives, Disk volumes, directory trees, etc, using Media Access Url's. More...
 
class  multifetchworker
 
class  multifetchrequest
 
class  MediaMultiCurl
 
class  MediaNetworkCommonHandler
 Common baseclass for MediaCurl and MediaNetwork. More...
 
class  MediaNFS
 Implementation class for NFS MediaHandler. More...
 
class  MediaPlugin
 Implementation class for plugin MediaHandler. More...
 
class  MediaPriority
 Derive a numeric priority from Url scheme according to zypp.conf(download.media_preference). More...
 
class  MediaSource
 Media source internally used by MediaManager and MediaHandler. More...
 
class  AttachPoint
 Attach point of a media source. More...
 
struct  AttachedMedia
 A simple structure containing references to a media source and its attach point. More...
 
class  UrlResolverPlugin
 
class  ZsyncParser
 
struct  MediaChangeReport
 
class  ScopedDisableMediaChangeReport
 Temporarily disable MediaChangeReport Sometimes helpful to suppress interactive messages connected to MediaChangeReport while fallback URLs are avaialble. More...
 
struct  DownloadProgressReport
 
struct  AuthenticationReport
 

Typedefs

typedef unsigned int MediaNr
 
typedef zypp::RW_pointer< MediaVerifierBaseMediaVerifierRef
 A shared reference to the MediaVerifier implementation. More...
 
typedef unsigned int MediaAccessId
 Media manager access Id type. More...
 
typedef zypp::RW_pointer< MediaSourceMediaSourceRef
 
typedef zypp::RW_pointer< AttachPointAttachPointRef
 

Functions

std::string getShare (Pathname spath_r)
 
Pathname stripShare (Pathname spath_r)
 
 ZYPP_DECLARE_OPERATORS_FOR_FLAGS (MediaCurl::RequestOptions)
 
std::ostream & operator<< (std::ostream &str, const MediaHandler &obj)
 
static double currentTime ()
 
static bool env_isset (std::string name)
 
static bool looks_like_metalink_fd (int fd)
 
static bool looks_like_metalink (const Pathname &file)
 
std::ostream & operator<< (std::ostream &str, const AttachPoint &obj)
 
std::ostream & operator<< (std::ostream &str, const AttachedMedia &obj)
 
std::ostream & operator<< (std::ostream &str, const UrlResolverPlugin &obj)
 
static int hexstr2bytes (unsigned char *buf, const char *str, int buflen)
 

Variables

constexpr auto MIN_REQ_MIRRS = 4
 
constexpr auto BLKSIZE = 131072
 
constexpr auto MAXURLS = 10
 

Typedef Documentation

◆ MediaNr

typedef unsigned int zypp::media::MediaNr

Definition at line 32 of file MediaManager.h.

◆ MediaVerifierRef

A shared reference to the MediaVerifier implementation.

Definition at line 107 of file MediaManager.h.

◆ MediaAccessId

typedef unsigned int zypp::media::MediaAccessId

Media manager access Id type.

Definition at line 29 of file MediaSource.h.

◆ MediaSourceRef

◆ AttachPointRef

Function Documentation

◆ getShare()

std::string zypp::media::getShare ( Pathname  spath_r)
inline

Definition at line 46 of file MediaCIFS.cc.

◆ stripShare()

Pathname zypp::media::stripShare ( Pathname  spath_r)
inline

Definition at line 74 of file MediaCIFS.cc.

◆ ZYPP_DECLARE_OPERATORS_FOR_FLAGS()

zypp::media::ZYPP_DECLARE_OPERATORS_FOR_FLAGS ( MediaCurl::RequestOptions  )

◆ operator<<() [1/4]

std::ostream& zypp::media::operator<< ( std::ostream &  str,
const MediaHandler obj 
)

Definition at line 1217 of file MediaHandler.cc.

◆ currentTime()

static double zypp::media::currentTime ( )
static

Definition at line 173 of file MediaMultiCurl.cc.

◆ env_isset()

static bool zypp::media::env_isset ( std::string  name)
inlinestatic

Definition at line 421 of file MediaMultiCurl.cc.

◆ looks_like_metalink_fd()

static bool zypp::media::looks_like_metalink_fd ( int  fd)
static

Definition at line 1210 of file MediaMultiCurl.cc.

◆ looks_like_metalink()

static bool zypp::media::looks_like_metalink ( const Pathname file)
static

Definition at line 1235 of file MediaMultiCurl.cc.

◆ operator<<() [2/4]

std::ostream& zypp::media::operator<< ( std::ostream &  str,
const AttachPoint obj 
)
related

Definition at line 18 of file MediaSource.cc.

◆ operator<<() [3/4]

std::ostream& zypp::media::operator<< ( std::ostream &  str,
const AttachedMedia obj 
)
related

Definition at line 23 of file MediaSource.cc.

◆ operator<<() [4/4]

std::ostream& zypp::media::operator<< ( std::ostream &  str,
const UrlResolverPlugin obj 
)
related

Definition at line 92 of file UrlResolverPlugin.cc.

◆ hexstr2bytes()

static int zypp::media::hexstr2bytes ( unsigned char *  buf,
const char *  str,
int  buflen 
)
static

Definition at line 39 of file ZsyncParser.cc.

Variable Documentation

◆ MIN_REQ_MIRRS

constexpr auto zypp::media::MIN_REQ_MIRRS = 4
constexpr

Definition at line 166 of file MediaMultiCurl.cc.

◆ BLKSIZE

constexpr auto zypp::media::BLKSIZE = 131072
constexpr

Definition at line 167 of file MediaMultiCurl.cc.

◆ MAXURLS

constexpr auto zypp::media::MAXURLS = 10
constexpr

Definition at line 168 of file MediaMultiCurl.cc.