zypp::media Namespace Reference

Classes

class  CredentialFileReader
struct  CredManagerOptions
struct  AuthDataComparator
class  CredentialManager
struct  CurlConfig
 Structure holding values of curlrc options. More...
class  MediaAccess
 Handle access to a medium. More...
class  MediaAria2c
 Implementation class for FTP, HTTP and HTTPS MediaHandler using an external program (aria2c) to retrive files. More...
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  MediaException
 Just inherits Exception to separate media exceptions. More...
class  MediaMountException
class  MediaUnmountException
class  MediaBadFilenameException
class  MediaNotOpenException
class  MediaFileNotFoundException
class  MediaWriteException
class  MediaNotAttachedException
class  MediaBadAttachPointException
class  MediaCurlInitException
class  MediaMetalinkInitException
class  MediaAria2cInitException
class  MediaSystemException
class  MediaNotAFileException
class  MediaNotADirException
class  MediaBadUrlException
class  MediaBadUrlEmptyHostException
class  MediaBadUrlEmptyFilesystemException
class  MediaBadUrlEmptyDestinationException
class  MediaUnsupportedUrlSchemeException
class  MediaNotSupportedException
class  MediaCurlException
class  MediaCurlSetOptException
class  MediaMetalinkException
class  MediaMetalinkSetOptException
class  MediaAria2cException
class  MediaAria2cSetOptException
class  MediaNotDesiredException
class  MediaIsSharedException
class  MediaNotEjectedException
class  MediaUnauthorizedException
class  MediaForbiddenException
class  MediaTimeoutException
class  MediaTemporaryProblemException
 For HTTP 503 and similar. More...
class  MediaBadCAException
class  MediaNoLoopDeviceException
 Thrown if /sbin/losetup fails to find an unused loop device for mounting an .iso image. More...
class  MediaHandler
 Abstract base class for 'physical' MediaHandler like MediaCD, etc. More...
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  MediaNFS
 Implementation class for NFS 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  AuthData
 Class for handling media authentication data. More...
class  CurlAuthData
 Curl HTTP authentication data. More...
struct  MountEntry
 A "struct mntent" like mount entry structure, but using std::strings. More...
class  Mount
 Interface to the mount program. More...
class  ProxyInfoSysconfig
class  ProxyInfo
class  TransferSettings
 Holds transfer setting. More...
struct  MediaChangeReport
struct  DownloadProgressReport
struct  AuthenticationReport

Typedefs

typedef zypp::RW_pointer
< MediaAccess
MediaAccessRef
typedef MediaAccessId MediaId
typedef unsigned int MediaNr
typedef zypp::RW_pointer
< MediaVerifierBase
MediaVerifierRef
 A shared reference to the MediaVerifier implementation.
typedef unsigned int MediaAccessId
 Media manager access Id type.
typedef zypp::RW_pointer
< MediaSource
MediaSourceRef
typedef zypp::RW_pointer
< AttachPoint
AttachPointRef
typedef shared_ptr< AuthDataAuthData_Ptr
typedef shared_ptr< CurlAuthDataCurlAuthData_Ptr

Functions

static AuthData_Ptr findIn (const CredentialManager::CredentialSet &set, const Url &url, url::ViewOption vopt)
static int save_creds_in_file (const CredentialManager::CredentialSet creds, const Pathname &file, const mode_t mode)
std::ostream & operator<< (std::ostream &str, const MediaAccess &obj)
void fillAriaCmdLine (const string &ariaver, const TransferSettings &s, filesystem::TmpPath &credentials, const Url &url, const Pathname &destination, ExternalProgram::Arguments &args)
 comannd line for aria.
static Url getFileUrl (const Url &url, const Pathname &filename)
string getShare (Pathname spath_r)
Pathname stripShare (Pathname spath_r)
void fillSettingsFromUrl (const Url &url, TransferSettings &s)
 Fills the settings structure using options passed on the url for example ?timeout=x&proxy=foo.
void fillSettingsSystemProxy (const Url &url, TransferSettings &s)
 Reads the system proxy configuration and fills the settings structure proxy information.
static const char *const anonymousIdHeader ()
 initialized only once, this gets the anonymous id from the target, which we pass in the http header
static const char *const distributionFlavorHeader ()
 initialized only once, this gets the distribution flavor from the target, which we pass in the http header
static const char *const agentString ()
 initialized only once, this gets the agent string which also includes the curl version
 ZYPP_DECLARE_OPERATORS_FOR_FLAGS (MediaCurl::RequestOptions)
ostream & operator<< (ostream &str, const MediaHandler &obj)
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 AuthData &auth_data)
std::ostream & operator<< (std::ostream &str, const CurlAuthData &auth_data)
std::ostream & operator<< (std::ostream &str, const MountEntry &obj)

Typedef Documentation

Definition at line 36 of file MediaManager.h.

Definition at line 39 of file MediaManager.h.

typedef unsigned int zypp::media::MediaNr

Definition at line 40 of file MediaManager.h.

A shared reference to the MediaVerifier implementation.

Definition at line 124 of file MediaManager.h.

typedef unsigned int zypp::media::MediaAccessId

Media manager access Id type.

Definition at line 29 of file MediaSource.h.

Definition at line 124 of file MediaSource.h.

Definition at line 125 of file MediaSource.h.

typedef shared_ptr<AuthData> zypp::media::AuthData_Ptr

Definition at line 71 of file MediaUserAuth.h.

Definition at line 160 of file MediaUserAuth.h.


Function Documentation

static AuthData_Ptr zypp::media::findIn ( const CredentialManager::CredentialSet &  set,
const Url &  url,
url::ViewOption  vopt 
) [static]
static int zypp::media::save_creds_in_file ( const CredentialManager::CredentialSet  creds,
const Pathname &  file,
const mode_t  mode 
) [static]
std::ostream & zypp::media::operator<< ( std::ostream &  str,
const MediaAccess &  obj 
)
void zypp::media::fillAriaCmdLine ( const string &  ariaver,
const TransferSettings &  s,
filesystem::TmpPath &  credentials,
const Url &  url,
const Pathname &  destination,
ExternalProgram::Arguments &  args 
)
static Url zypp::media::getFileUrl ( const Url &  url,
const Pathname &  filename 
) [static]
string zypp::media::getShare ( Pathname  spath_r  )  [inline]

Definition at line 46 of file MediaCIFS.cc.

Referenced by zypp::media::MediaCIFS::attachTo().

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

Definition at line 74 of file MediaCIFS.cc.

void zypp::media::fillSettingsFromUrl ( const Url &  url,
TransferSettings &  s 
)
void zypp::media::fillSettingsSystemProxy ( const Url &  url,
TransferSettings &  s 
)
static const char* const zypp::media::anonymousIdHeader (  )  [static]

initialized only once, this gets the anonymous id from the target, which we pass in the http header

Definition at line 315 of file MediaCurl.cc.

References _value, zypp::Target::anonymousUniqueId(), zypp::str::form(), and zypp::str::trim().

Referenced by zypp::media::MediaCurl::attachTo().

static const char* const zypp::media::distributionFlavorHeader (  )  [static]

initialized only once, this gets the distribution flavor from the target, which we pass in the http header

Definition at line 333 of file MediaCurl.cc.

References _value, zypp::Target::distributionFlavor(), zypp::str::form(), and zypp::str::trim().

Referenced by zypp::media::MediaCurl::attachTo().

static const char* const zypp::media::agentString (  )  [static]

initialized only once, this gets the agent string which also includes the curl version

Definition at line 351 of file MediaCurl.cc.

References _value, zypp::str::form(), and zypp::Target::targetDistribution().

Referenced by zypp::media::MediaCurl::attachTo().

zypp::media::ZYPP_DECLARE_OPERATORS_FOR_FLAGS ( MediaCurl::RequestOptions   ) 
ostream& zypp::media::operator<< ( ostream &  str,
const MediaHandler &  obj 
)
std::ostream& zypp::media::operator<< ( std::ostream &  str,
const AttachPoint &  obj 
) [related]
std::ostream& zypp::media::operator<< ( std::ostream &  str,
const AttachedMedia &  obj 
) [related]
std::ostream & zypp::media::operator<< ( std::ostream &  str,
const AuthData &  auth_data 
)
std::ostream & zypp::media::operator<< ( std::ostream &  str,
const CurlAuthData &  auth_data 
)
std::ostream& zypp::media::operator<< ( std::ostream &  str,
const MountEntry &  obj 
) [related]
Generated on Fri Mar 2 09:46:13 2012 for libzypp by  doxygen 1.6.3