CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SigningTool Class Reference

#include <signing_tool.h>

Collaboration diagram for SigningTool:

Public Types

enum  Result {
  kSuccess, kError, kInitError, kReflogMissing,
  kReflogChecksumMissing
}
 

Public Member Functions

 SigningTool (ServerTool *server_tool)
 
virtual ~SigningTool ()
 
Result Run (const std::string &manifest_path, const std::string &repo_url, const std::string &spooler_definition, const std::string &temp_dir, const std::string &certificate="", const std::string &priv_key="", const std::string &repo_name="", const std::string &pwd="", const std::string &meta_info="", const std::string &reflog_chksum_path="", const std::string &proxy="", const bool garbage_collectable=false, const bool bootstrap_shortcuts=false, const bool return_early=false, const std::vector< shash::Any > reflog_catalogs=std::vector< shash::Any >())
 

Protected Member Functions

void CertificateUploadCallback (const upload::SpoolerResult &result)
 
void MetainfoUploadCallback (const upload::SpoolerResult &result)
 

Private Attributes

ServerToolserver_tool_
 
Future< shash::Anycertificate_hash_
 
Future< shash::Anymetainfo_hash_
 

Detailed Description

Definition at line 21 of file signing_tool.h.

Member Enumeration Documentation

Enumerator
kSuccess 
kError 
kInitError 
kReflogMissing 
kReflogChecksumMissing 

Definition at line 23 of file signing_tool.h.

Constructor & Destructor Documentation

SigningTool::SigningTool ( ServerTool server_tool)
explicit

Definition at line 23 of file signing_tool.cc.

SigningTool::~SigningTool ( )
virtual

Definition at line 25 of file signing_tool.cc.

Member Function Documentation

void SigningTool::CertificateUploadCallback ( const upload::SpoolerResult result)
protected

Definition at line 271 of file signing_tool.cc.

Referenced by Run().

Here is the call graph for this function:

Here is the caller graph for this function:

void SigningTool::MetainfoUploadCallback ( const upload::SpoolerResult result)
protected

Definition at line 285 of file signing_tool.cc.

Referenced by Run().

Here is the call graph for this function:

Here is the caller graph for this function:

SigningTool::Result SigningTool::Run ( const std::string &  manifest_path,
const std::string &  repo_url,
const std::string &  spooler_definition,
const std::string &  temp_dir,
const std::string &  certificate = "",
const std::string &  priv_key = "",
const std::string &  repo_name = "",
const std::string &  pwd = "",
const std::string &  meta_info = "",
const std::string &  reflog_chksum_path = "",
const std::string &  proxy = "",
const bool  garbage_collectable = false,
const bool  bootstrap_shortcuts = false,
const bool  return_early = false,
const std::vector< shash::Any reflog_catalogs = std::vector<shash::Any>() 
)

Definition at line 27 of file signing_tool.cc.

Referenced by swissknife::CommandSign::Main(), and receiver::CommitProcessor::Process().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Future<shash::Any> SigningTool::certificate_hash_
private

Definition at line 54 of file signing_tool.h.

Referenced by CertificateUploadCallback(), and Run().

Future<shash::Any> SigningTool::metainfo_hash_
private

Definition at line 55 of file signing_tool.h.

Referenced by MetainfoUploadCallback(), and Run().

ServerTool* SigningTool::server_tool_
private

Definition at line 53 of file signing_tool.h.

Referenced by Run().


The documentation for this class was generated from the following files: