Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TDavixFile.cxx File Reference
#include "ROOT/RLogger.hxx"
#include "TDavixFile.h"
#include "TROOT.h"
#include "TSocket.h"
#include "Bytes.h"
#include "TError.h"
#include "TEnv.h"
#include "TBase64.h"
#include "TVirtualPerfStats.h"
#include "TDavixFileInternal.h"
#include "snprintf.h"
#include <cerrno>
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>
#include <davix.hpp>
#include <sstream>
#include <string>
#include <cstring>
Include dependency graph for TDavixFile.cxx:

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 

Macros

#define ENVPFX   "Davix."
 

Functions

template<typename TRequestParams = Davix::RequestParams>
static void awsAlternate (...)
 
template<typename TRequestParams = Davix::RequestParams>
static auto awsAlternate (TRequestParams *parameters, bool option) -> decltype(parameters->setAwsAlternate(option), void())
 
template<typename TRequestParams = Davix::RequestParams>
static void awsRegion (...)
 
template<typename TRequestParams = Davix::RequestParams>
static auto awsRegion (TRequestParams *parameters, const char *region) -> decltype(parameters->setAwsRegion(region), void())
 
template<typename TRequestParams = Davix::RequestParams>
static void awsToken (...)
 
template<typename TRequestParams = Davix::RequestParams>
static auto awsToken (TRequestParams *parameters, const char *token) -> decltype(parameters->setAwsToken(token), void())
 
int configure_open_flag (const std::string &str, int old_flag)
 
static void ConfigureDavixLogLevel ()
 
std::string DiscoverToken ()
 
bool findTokenInFile (const std::string &token_file, std::string &output_token)
 
bool isno (const char *str)
 
bool normalizeToken (const std::string &input_token, std::string &output_token)
 
bool strToBool (const char *str, bool defvalue)
 
static int TDavixFile_http_authn_cert_X509 (void *userdata, const Davix::SessionInfo &info, Davix::X509Credential *cert, Davix::DavixError **err)
 
static void TDavixFile_http_get_ucert (std::string &ucert, std::string &ukey)
 
ROOT::Experimental::RLogChannelTDavixLogChannel ()
 

Variables

const char * ca_check_opt = "ca_check=no"
 
static TMutex createLock
 
static Context * davix_context_s = NULL
 
const char * grid_mode_opt = "grid_mode=yes"
 
static const std::string gUserAgent
 
const char * open_mode_create = "CREATE"
 
const char * open_mode_new = "NEW"
 
const char * open_mode_read = "READ"
 
const char * open_mode_update = "UPDATE"
 
const char * s3_acckey_opt = "s3acckey="
 
const char * s3_alternate_opt = "s3alternate="
 
const char * s3_region_opt = "s3region="
 
const char * s3_seckey_opt = "s3seckey="
 
const char * s3_token_opt = "s3token="
 
static const std::string VERSION = "0.2.0"
 

Macro Definition Documentation

◆ ENVPFX

#define ENVPFX   "Davix."

Definition at line 61 of file TDavixFile.cxx.

Function Documentation

◆ awsAlternate() [1/2]

template<typename TRequestParams = Davix::RequestParams>
static void awsAlternate (   ...)
static

Definition at line 478 of file TDavixFile.cxx.

◆ awsAlternate() [2/2]

template<typename TRequestParams = Davix::RequestParams>
static auto awsAlternate ( TRequestParams *  parameters,
bool  option 
) -> decltype(parameters->setAwsAlternate(option), void())
static

Definition at line 470 of file TDavixFile.cxx.

◆ awsRegion() [1/2]

template<typename TRequestParams = Davix::RequestParams>
static void awsRegion (   ...)
static

Definition at line 450 of file TDavixFile.cxx.

◆ awsRegion() [2/2]

template<typename TRequestParams = Davix::RequestParams>
static auto awsRegion ( TRequestParams *  parameters,
const char *  region 
) -> decltype(parameters->setAwsRegion(region), void())
static

Definition at line 442 of file TDavixFile.cxx.

◆ awsToken() [1/2]

template<typename TRequestParams = Davix::RequestParams>
static void awsToken (   ...)
static

Definition at line 464 of file TDavixFile.cxx.

◆ awsToken() [2/2]

template<typename TRequestParams = Davix::RequestParams>
static auto awsToken ( TRequestParams *  parameters,
const char *  token 
) -> decltype(parameters->setAwsToken(token), void())
static

Definition at line 456 of file TDavixFile.cxx.

◆ configure_open_flag()

int configure_open_flag ( const std::string &  str,
int  old_flag 
)

Definition at line 113 of file TDavixFile.cxx.

◆ ConfigureDavixLogLevel()

static void ConfigureDavixLogLevel ( )
static

Definition at line 129 of file TDavixFile.cxx.

◆ DiscoverToken()

std::string DiscoverToken ( )

Definition at line 223 of file TDavixFile.cxx.

◆ findTokenInFile()

bool findTokenInFile ( const std::string &  token_file,
std::string &  output_token 
)

Definition at line 182 of file TDavixFile.cxx.

◆ isno()

bool isno ( const char *  str)

Definition at line 92 of file TDavixFile.cxx.

◆ normalizeToken()

bool normalizeToken ( const std::string &  input_token,
std::string &  output_token 
)

Definition at line 154 of file TDavixFile.cxx.

◆ strToBool()

bool strToBool ( const char *  str,
bool  defvalue 
)

Definition at line 102 of file TDavixFile.cxx.

◆ TDavixFile_http_authn_cert_X509()

static int TDavixFile_http_authn_cert_X509 ( void *  userdata,
const Davix::SessionInfo &  info,
Davix::X509Credential *  cert,
Davix::DavixError **  err 
)
static

Definition at line 324 of file TDavixFile.cxx.

◆ TDavixFile_http_get_ucert()

static void TDavixFile_http_get_ucert ( std::string &  ucert,
std::string &  ukey 
)
static

Definition at line 264 of file TDavixFile.cxx.

◆ TDavixLogChannel()

ROOT::Experimental::RLogChannel & TDavixLogChannel ( )

Definition at line 84 of file TDavixFile.cxx.

Variable Documentation

◆ ca_check_opt

const char* ca_check_opt = "ca_check=no"

Definition at line 68 of file TDavixFile.cxx.

◆ createLock

TMutex createLock
static

Definition at line 79 of file TDavixFile.cxx.

◆ davix_context_s

Context* davix_context_s = NULL
static

Definition at line 80 of file TDavixFile.cxx.

◆ grid_mode_opt

const char* grid_mode_opt = "grid_mode=yes"

Definition at line 67 of file TDavixFile.cxx.

◆ gUserAgent

const std::string gUserAgent
static
Initial value:
= "ROOT/" + std::string( (ROOT::GetROOT()) ->GetVersion()) +
" TDavixFile/" + VERSION + " davix/" + Davix::version()
static const std::string VERSION
TROOT * GetROOT()
Definition TROOT.cxx:472

Definition at line 57 of file TDavixFile.cxx.

◆ open_mode_create

const char* open_mode_create = "CREATE"

Definition at line 75 of file TDavixFile.cxx.

◆ open_mode_new

const char* open_mode_new = "NEW"

Definition at line 76 of file TDavixFile.cxx.

◆ open_mode_read

const char* open_mode_read = "READ"

Definition at line 74 of file TDavixFile.cxx.

◆ open_mode_update

const char* open_mode_update = "UPDATE"

Definition at line 77 of file TDavixFile.cxx.

◆ s3_acckey_opt

const char* s3_acckey_opt = "s3acckey="

Definition at line 70 of file TDavixFile.cxx.

◆ s3_alternate_opt

const char* s3_alternate_opt = "s3alternate="

Definition at line 73 of file TDavixFile.cxx.

◆ s3_region_opt

const char* s3_region_opt = "s3region="

Definition at line 71 of file TDavixFile.cxx.

◆ s3_seckey_opt

const char* s3_seckey_opt = "s3seckey="

Definition at line 69 of file TDavixFile.cxx.

◆ s3_token_opt

const char* s3_token_opt = "s3token="

Definition at line 72 of file TDavixFile.cxx.

◆ VERSION

const std::string VERSION = "0.2.0"
static

Definition at line 55 of file TDavixFile.cxx.