CernVM-FS
2.12.0
|
Classes | |
struct | Counters |
class | HeaderLists |
class | CredentialsAttachment |
class | DownloadManager |
class | HealthCheck |
struct | DataTubeElement |
class | JobInfo |
class | ShardingPolicy |
Functions | |
bool | Interrupted (const std::string &fqrn, JobInfo *info) |
static Failures | PrepareDownloadDestination (JobInfo *info) |
static size_t | CallbackCurlHeader (void *ptr, size_t size, size_t nmemb, void *info_link) |
static size_t | CallbackCurlData (void *ptr, size_t size, size_t nmemb, void *info_link) |
static bool | sortlinks (const std::string &s1, const std::string &s2) |
bool | IsHostTransferError (const Failures error) |
bool | IsProxyTransferError (const Failures error) |
const char * | Code2Ascii (const Failures error) |
static int | PrintPacError (const char *fmt, va_list argp) |
static string | PacProxy2Cvmfs (const string &pac_proxy, const bool report_errors) |
static bool | ParsePac (const char *pac_data, const size_t size, DownloadManager *download_manager, string *proxies) |
string | AutoProxy (DownloadManager *download_manager) |
string | ResolveProxyDescription (const string &cvmfs_proxies, const std::string &path_fallback_cache, DownloadManager *download_manager) |
static void | AltCvmfsLogger (const LogSource source, const int mask, const char *msg) |
int | MainResolveProxyDescription (int argc, char **argv) |
std::string | ResolveProxyDescription (const std::string &cvmfs_proxies, const std::string &path_fallback_cache, DownloadManager *download_manager) |
Variables | |
const char * | kAutoPacLocation = "http://wpad/wpad.dat" |
This file is part of the CernVM File System.
This file is part of the CernVM File System.
The SimpleCatalogManager is a simplistic concrete implementation of the AbstractCatalogManager and allows for easy-to-use access to the catalog structure of a given repository. This class is tailored for simplicity, not for performance. Have a look into ClientCatalogManager if you are working on the CVMFS client.
enum download::Failures |
Possible return values. Adjust ObjectFetcher error handling if new network error conditions are added.
Definition at line 14 of file network_errors.h.
Enumerator | |
---|---|
kShardingPolicySucess | |
kShardingPolicyProxySwitch | |
kShardingPolicyProxyFail |
Definition at line 15 of file sharding_policy.h.
Enumerator | |
---|---|
kShardingPolicyExternal |
Definition at line 22 of file sharding_policy.h.
|
static |
Definition at line 259 of file wpad.cc.
Referenced by MainResolveProxyDescription().
std::string download::AutoProxy | ( | DownloadManager * | download_manager | ) |
Tries to discover list of proxy description string. See: https://twiki.cern.ch/twiki/bin/view/LCG/HttpProxyDiscoveryProposal
Definition at line 153 of file wpad.cc.
Referenced by ResolveProxyDescription().
|
static |
Called by curl for every received data chunk.
Definition at line 257 of file download.cc.
Referenced by s3fanout::S3FanoutManager::AcquireCurlHandle(), and download::DownloadManager::AcquireCurlHandle().
|
static |
Called by curl for every HTTP header. Not called for file:// transfers.
Definition at line 138 of file download.cc.
Referenced by s3fanout::S3FanoutManager::AcquireCurlHandle(), and download::DownloadManager::AcquireCurlHandle().
|
inline |
Definition at line 65 of file network_errors.h.
Referenced by manifest::DoFetch(), notify::DoPublish(), publish::DownloadRootObjects(), cvmfs::Fetcher::Fetch(), download::DownloadManager::Fetch(), swissknife::Assistant::FetchObject(), swissknife::CommandTag::FetchObject(), download::DownloadManager::GeoSortServers(), publish::IsMasterReplica(), catalog::SimpleCatalogManager::LoadCatalogByHash(), swissknife::CommandInfo::Main(), swissknife::CommandPull::Main(), download::DownloadManager::ProbeHosts(), swissknife::ReportDownloadError(), and download::DownloadManager::SwitchHostInfo().
bool download::Interrupted | ( | const std::string & | fqrn, |
JobInfo * | info | ||
) |
Returns the status if an interrupt happened for a given repository.
Used only in case CVMFS_FAILOVER_INDEFINITELY (failover_indefinitely_) is set where failed downloads are retried indefinitely, unless an interrupt occurred
Definition at line 85 of file download.cc.
Referenced by download::DownloadManager::VerifyAndFinalize().
|
inline |
Definition at line 41 of file network_errors.h.
Referenced by download::DownloadManager::CanRetry(), HttpObjectFetcher< CatalogT, HistoryT, ReflogT >::Download(), swissknife::ReportDownloadError(), and download::DownloadManager::VerifyAndFinalize().
|
inline |
Definition at line 53 of file network_errors.h.
Referenced by download::DownloadManager::CanRetry(), HttpObjectFetcher< CatalogT, HistoryT, ReflogT >::Download(), swissknife::ReportDownloadError(), and download::DownloadManager::VerifyAndFinalize().
int download::MainResolveProxyDescription | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 272 of file wpad.cc.
Referenced by AltProcessFlavor().
|
static |
Definition at line 42 of file wpad.cc.
Referenced by ParsePac().
|
static |
Definition at line 88 of file wpad.cc.
Referenced by AutoProxy().
|
static |
Definition at line 115 of file download.cc.
Referenced by download::DownloadManager::Fetch().
|
static |
Definition at line 30 of file wpad.cc.
Referenced by ParsePac().
std::string download::ResolveProxyDescription | ( | const std::string & | cvmfs_proxies, |
const std::string & | path_fallback_cache, | ||
DownloadManager * | download_manager | ||
) |
Uses AutoProxy to replace any "auto" proxy by the proxies from the PAC file
string download::ResolveProxyDescription | ( | const string & | cvmfs_proxies, |
const std::string & | path_fallback_cache, | ||
DownloadManager * | download_manager | ||
) |
Definition at line 207 of file wpad.cc.
Referenced by MountPoint::CreateDownloadManagers(), MainResolveProxyDescription(), TalkManager::MainResponder(), and MountPoint::SetupExternalDownloadMgr().
|
static |
Definition at line 1406 of file download.cc.
Referenced by download::DownloadManager::ProcessLink().
const char* download::kAutoPacLocation = "http://wpad/wpad.dat" |
Definition at line 28 of file wpad.cc.
Referenced by AutoProxy().