CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{repository_session.cc} Namespace Reference

Classes

struct  CurlBuffer
 

Enumerations

enum  LeaseReply { kLeaseReplySuccess, kLeaseReplyBusy, kLeaseReplyFailure }
 

Functions

static CURL * PrepareCurl (const std::string &method)
 
static size_t RecvCB (void *buffer, size_t size, size_t nmemb, void *userp)
 
static void MakeAcquireRequest (const gateway::GatewayKey &key, const std::string &repo_path, const std::string &repo_service_url, int llvl, CurlBuffer *buffer)
 
static void MakeDropRequest (const gateway::GatewayKey &key, const std::string &session_token, const std::string &repo_service_url, int llvl, CurlBuffer *reply)
 
static LeaseReply ParseAcquireReply (const CurlBuffer &buffer, std::string *session_token, int llvl)
 
static LeaseReply ParseDropReply (const CurlBuffer &buffer, int llvl)
 

Detailed Description

This file is part of the CernVM File System.

Enumeration Type Documentation

enum anonymous_namespace{repository_session.cc}::LeaseReply
Enumerator
kLeaseReplySuccess 
kLeaseReplyBusy 
kLeaseReplyFailure 

Definition at line 35 of file repository_session.cc.

Function Documentation

static void anonymous_namespace{repository_session.cc}::MakeAcquireRequest ( const gateway::GatewayKey key,
const std::string &  repo_path,
const std::string &  repo_service_url,
int  llvl,
CurlBuffer buffer 
)
static

Definition at line 67 of file repository_session.cc.

Referenced by swissknife::CommandLease::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void anonymous_namespace{repository_session.cc}::MakeDropRequest ( const gateway::GatewayKey key,
const std::string &  session_token,
const std::string &  repo_service_url,
int  llvl,
CurlBuffer reply 
)
static

Definition at line 117 of file repository_session.cc.

Here is the call graph for this function:

static LeaseReply anonymous_namespace{repository_session.cc}::ParseAcquireReply ( const CurlBuffer buffer,
std::string *  session_token,
int  llvl 
)
static

Definition at line 160 of file repository_session.cc.

Referenced by swissknife::CommandLease::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

static LeaseReply anonymous_namespace{repository_session.cc}::ParseDropReply ( const CurlBuffer buffer,
int  llvl 
)
static

Definition at line 210 of file repository_session.cc.

Referenced by swissknife::CommandLease::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

static CURL* anonymous_namespace{repository_session.cc}::PrepareCurl ( const std::string &  method)
static

Definition at line 41 of file repository_session.cc.

Referenced by MakeAcquireRequest(), MakeAcquireRequest(), MakeDropRequest(), and MakeEndRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

static size_t anonymous_namespace{repository_session.cc}::RecvCB ( void *  buffer,
size_t  size,
size_t  nmemb,
void *  userp 
)
static

Definition at line 55 of file repository_session.cc.