CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish Namespace Reference

Classes

class  CmdAbort
 
class  CmdDiff
 
class  CmdEnter
 
class  CmdHash
 
class  CmdHelp
 
class  CmdInfo
 
class  CmdMkfs
 
class  CmdTransaction
 
class  CmdZpipe
 
class  Command
 
class  CommandList
 
class  EPublish
 
class  Session
 
class  CheckoutMarker
 
class  ServerLockFile
 
class  Setting
 
class  SettingsSpoolArea
 
class  SettingsTransaction
 
class  SettingsGc
 
class  SettingsStorage
 
class  SettingsKeychain
 
class  SettingsRepository
 
class  SettingsPublisher
 
class  SettingsReplica
 
class  SettingsBuilder
 
class  SyncItem
 
class  SyncItemNative
 
class  SyncItemDummyCatalog
 
class  SyncItemDummyDir
 
class  SyncItemTar
 
class  SyncDiffReporter
 
struct  HardlinkGroup
 
class  AbstractSyncMediator
 
class  SyncMediator
 
class  SyncUnion
 
class  SyncUnionAufs
 
class  SyncUnionOverlayfs
 
class  SyncUnionTarball
 

Typedefs

typedef std::map< std::string,
SharedPtr< SyncItem > > 
SyncItemList
 
typedef std::map< uint64_t,
HardlinkGroup
HardlinkGroupMap
 

Enumerations

enum  EMountpointAlterations {
  kAlterUnionUnmount, kAlterUnionLazyUnmount, kAlterRdOnlyUnmount, kAlterRdOnlyKillUnmount,
  kAlterRdOnlyLazyUnmount, kAlterUnionMount, kAlterRdOnlyMount, kAlterUnionOpen,
  kAlterUnionLock, kAlterScratchWipe
}
 
enum  EUnionMountRepairMode { kUnionMountRepairNever = 0, kUnionMountRepairSafe, kUnionMountRepairAlways }
 
enum  SyncItemType {
  kItemDir, kItemFile, kItemSymlink, kItemCharacterDevice,
  kItemBlockDevice, kItemFifo, kItemSocket, kItemNew,
  kItemMarker, kItemUnknown
}
 
enum  UnionFsType { kUnionFsUnknown, kUnionFsAufs, kUnionFsOverlay, kUnionFsTarball }
 

Functions

int CallServerHook (const std::string &func, const std::string &fqrn, const std::string &path_hooks="/etc/cvmfs/cvmfs_server_hooks.sh")
 
class __attribute__ ((visibility("default"))) DiffListener
 
class static __attribute__((visibility("default")))
Repository std::string 
GetFqrnFromUrl (const std::string &url)
 
 Repository (const SettingsRepository &settings)
 
virtual ~Repository ()
 
void Check ()
 
void GarbageCollect ()
 
void List ()
 
void Diff (const std::string &from, const std::string &to, DiffListener *diff_listener)
 
bool IsMasterReplica ()
 
const signature::SignatureManagersignature_mgr () const
 
const whitelist::Whitelistwhitelist () const
 
const manifest::Manifestmanifest () const
 
const history::Historyhistory () const
 
std::string meta_info () const
 
 Repository ()
 
void DownloadRootObjects (const std::string &url, const std::string &fqrn, const std::string &tmp_dir)
 
catalog::SimpleCatalogManagerGetSimpleCatalogManager ()
 
class __attribute__((visibility("default")))
Publisher 
ManagedNode (Publisher *p)
 
int Check (bool is_quiet=false)
 
void Open ()
 
void Lock ()
 
void Unmount ()
 
void Mount ()
 
void ClearScratch ()
 
void AlterMountpoint (EMountpointAlterations how, int log_level)
 
void SetRootHash (const shash::Any &hash)
 
static PublisherCreate (const SettingsPublisher &settings)
 
 Publisher (const SettingsPublisher &settings)
 
virtual ~Publisher ()
 
void UpdateMetaInfo ()
 
void Transaction ()
 
void Abort ()
 
void Publish ()
 
void Ingest ()
 
void Sync ()
 
void EditTags (const std::vector< history::History::Tag > &add_tags, const std::vector< std::string > &rm_tags)
 
void MarkReplicatible (bool value)
 
void Rollback ()
 
void Resign ()
 
void Migrate ()
 
const SettingsPublishersettings () const
 
bool in_transaction () const
 
bool is_publishing () const
 
Sessionsession () const
 
const upload::Spooler * spooler_files () const
 
const upload::Spooler * spooler_catalogs () const
 
 Publisher ()
 Used by Create. More...
 
void ConstructSpoolers ()
 
void ConstructSyncManagers ()
 
void WipeScratchArea ()
 
void CreateKeychain ()
 
void CreateStorage ()
 
void CreateSpoolArea ()
 
void CreateRootObjects ()
 
void ExportKeychain ()
 
void CreateDirectoryAsOwner (const std::string &path, int mode)
 
void InitSpoolArea ()
 
void PushCertificate ()
 
void PushHistory ()
 
void PushManifest ()
 
void PushMetainfo ()
 
void PushReflog ()
 
void PushWhitelist ()
 
void OnProcessCertificate (const upload::SpoolerResult &result)
 
void OnProcessHistory (const upload::SpoolerResult &result)
 
void OnProcessMetainfo (const upload::SpoolerResult &result)
 
void OnUploadManifest (const upload::SpoolerResult &result)
 
void OnUploadReflog (const upload::SpoolerResult &result)
 
void OnUploadWhitelist (const upload::SpoolerResult &result)
 
void CheckTagName (const std::string &name)
 
void TransactionRetry ()
 
void TransactionImpl ()
 
void CheckTransactionStatus ()
 
void SyncImpl ()
 
class __attribute__((visibility("default")))
Replica 
Replica (const SettingsReplica &settings)
 
virtual ~Replica ()
 
void Snapshot ()
 
void RunSuidHelper (const std::string &verb, const std::string &fqrn)
 
void SetInConfig (const std::string &path, const std::string &key, const std::string &value)
 
std::string SendTalkCommand (const std::string &socket, const std::string &cmd)
 
bool ObtainSysAdminCapabilityInternal (cap_t caps)
 

Variables

const SettingsRepository settings_
 
perf::Statisticsstatistics_
 
signature::SignatureManagersignature_mgr_
 
download::DownloadManagerdownload_mgr_
 
catalog::SimpleCatalogManagersimple_catalog_mgr_
 
whitelist::Whitelistwhitelist_
 
manifest::Reflogreflog_
 
manifest::Manifestmanifest_
 
history::SqliteHistoryhistory_
 
std::string meta_info_
 
Publisherpublisher_
 
static const unsigned kRequiredLayoutRevision = 142
 
UniquePtr
< perf::StatisticsTemplate
statistics_publish_
 
int llvl_
 
bool in_transaction_
 
bool is_publishing_
 
gateway::GatewayKey gw_key_
 
UniquePtr< Sessionsession_
 
UniquePtr< ManagedNodemanaged_node_
 
upload::Spooler * spooler_files_
 
upload::Spooler * spooler_catalogs_
 
catalog::WritableCatalogManagercatalog_mgr_
 
SyncParameterssync_parameters_
 
SyncMediatorsync_mediator_
 
publish::SyncUnionsync_union_
 

Detailed Description

This file is part of the CernVM File System.

Data wrappers for single dentries. In addition to the normal file meta data it manages bookkeeping data specific to cvmfs such as the associated catalog.

This file is part of the CernVM File System.

This file is part of the CernVM File System.

Private utility functions for libcvmfs_server

This file is part of the CernVM File System

This file is part of the CernVM File System

This file defines a class to abstract information retrieval from union file system components.

There is a class UnionSync which is the base class for all supported union file systems and provides support for the basic union fs principals.

There are three main principals, union file systems follow:

  1. Copy on Write read-only files in CVMFS will be copied up to an overlay volume on write access.
  2. Whiteout the union file system has to mark files as deleted, if you remove them from a read only file system
  3. Opaque Directories if you delete an entire directory from the read only file system and recreate it empty afterwards the union file system has to mark this directory as opaque to hide all old contents

Furthermore, the union file system could create special files for internal bookkeeping which should be ignored.

Classes that derive from UnionSync implement the specifics of a concrete union file system (e.g. AUFS, overlayfs).

This file is part of the CernVM File System

This file defines a class which derives SyncUnion to provide support for AUFS

This file is part of the CernVM File System

This file defines a class which derives SyncUnion to provide support for overlayfs

This file is part of the CernVM File System

This file defines a class which derives SyncUnion to provide support for tarballs

Typedef Documentation

typedef std::map<uint64_t, HardlinkGroup> publish::HardlinkGroupMap

Mapping of inode number to the related HardlinkGroup.

Definition at line 139 of file sync_mediator.h.

typedef std::map<std::string, SharedPtr<SyncItem> > publish::SyncItemList

Definition at line 316 of file sync_item.h.

Enumeration Type Documentation

Possible state transitions for the cvmfs read-only mountpoint and the union file system on /cvmfs/$fqrn

Enumerator
kAlterUnionUnmount 
kAlterUnionLazyUnmount 
kAlterRdOnlyUnmount 
kAlterRdOnlyKillUnmount 
kAlterRdOnlyLazyUnmount 
kAlterUnionMount 
kAlterRdOnlyMount 
kAlterUnionOpen 
kAlterUnionLock 
kAlterScratchWipe 

Definition at line 206 of file repository.h.

Steers the aggressiveness of Publisher::ManagedNode::Check()

Enumerator
kUnionMountRepairNever 
kUnionMountRepairSafe 
kUnionMountRepairAlways 

Definition at line 68 of file settings.h.

Enumerator
kItemDir 
kItemFile 
kItemSymlink 
kItemCharacterDevice 
kItemBlockDevice 
kItemFifo 
kItemSocket 
kItemNew 
kItemMarker 
kItemUnknown 

Definition at line 29 of file sync_item.h.

Enumerator
kUnionFsUnknown 
kUnionFsAufs 
kUnionFsOverlay 
kUnionFsTarball 

Definition at line 44 of file sync_union.h.

Function Documentation

class publish::__attribute__ ( (visibility("default"))  )

Users create derived instances to react on repository diffs

Depending on the desired course of action, the permitted capabilites of the binary (cap_dac_read_search, cap_sys_admin) needs to be dropped or gained. Dropped for creating user namespaces in enter, gained for walking through overlayfs.

If in an ephemeral writable shell, return the session directory. Otherwise return the empty string.

Depending on the desired course of action, the permitted capabilites of the binary (cap_dac_read_search, cap_sys_admin) needs to be dropped or gained. Dropped for creating user namespaces in enter, gained for walking through overlayfs.

If in an ephemeral writable shell, return the session directory. Otherwise return the empty string.

Definition at line 57 of file repository.h.

void publish::Publisher::Abort ( )
private

Definition at line 28 of file repository_abort.cc.

Here is the call graph for this function:

void publish::Publisher::ManagedNode::AlterMountpoint ( EMountpointAlterations  how,
int  log_level 
)
private

Definition at line 271 of file repository_managed.cc.

Referenced by ClearScratch(), Mount(), and Unmount().

Here is the call graph for this function:

Here is the caller graph for this function:

int publish::CallServerHook ( const std::string &  func,
const std::string &  fqrn,
const std::string &  path_hooks = "/etc/cvmfs/cvmfs_server_hooks.sh" 
)

Runs the shell function $name from /etc/cvmfs/cvmfs_server_hooks.sh if it exists. Returns the exit code of the hook.

This file is part of the CernVM File System.

Definition at line 18 of file cmd_util.cc.

Referenced by publish::CmdAbort::Main(), and publish::CmdTransaction::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Check ( )

Referenced by FuseRemounter::CheckSynchronously().

Here is the caller graph for this function:

int publish::Check ( bool  is_quiet = false)
protected

Verifies the mountpoints and the transaction status. Returns a bit map of EFailures codes.

void publish::Publisher::CheckTagName ( const std::string &  name)
private

Definition at line 16 of file repository_tags.cc.

Referenced by EditTags().

Here is the caller graph for this function:

void publish::Publisher::CheckTransactionStatus ( )
private

Definition at line 25 of file repository_transaction.cc.

Referenced by Publisher(), and TransactionRetry().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::ManagedNode::ClearScratch ( )
protected

Move scratch space to waste bin and clear it out asynchonously

Definition at line 56 of file repository_managed.cc.

Here is the call graph for this function:

void publish::Publisher::ConstructSpoolers ( )
private

Used just before a spooler is required, e.g. in Create()

Definition at line 248 of file repository.cc.

Referenced by ConstructSyncManagers(), CreateStorage(), MarkReplicatible(), Publisher(), and TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::ConstructSyncManagers ( )
private

Initializes the spooler, the writable catalog manager, and the sync mediator

Definition at line 703 of file repository.cc.

Referenced by SyncImpl(), and TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

static Publisher* publish::Create ( const SettingsPublisher &  settings)
staticprivate
void publish::Publisher::CreateDirectoryAsOwner ( const std::string &  path,
int  mode 
)
private

Definition at line 575 of file repository.cc.

Referenced by ExportKeychain(), InitSpoolArea(), and Publisher().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::CreateKeychain ( )
private

Definition at line 275 of file repository.cc.

Here is the call graph for this function:

void publish::Publisher::CreateRootObjects ( )
private

Definition at line 299 of file repository.cc.

Here is the call graph for this function:

void publish::CreateSpoolArea ( )
private
void publish::Publisher::CreateStorage ( )
private

Definition at line 344 of file repository.cc.

Here is the call graph for this function:

void publish::Diff ( const std::string &  from,
const std::string &  to,
DiffListener *  diff_listener 
)

From and to are either tag names or catalog root hashes preceeded by a '@'.

void publish::Repository::DownloadRootObjects ( const std::string &  url,
const std::string &  fqrn,
const std::string &  tmp_dir 
)
protected

Definition at line 133 of file repository.cc.

Referenced by Repository().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::EditTags ( const std::vector< history::History::Tag > &  add_tags,
const std::vector< std::string > &  rm_tags 
)
private

Must not edit magic tags 'trunk' and 'trunk-previous'. Removal of non-existing tags is silently ignored. The caller needs to ensure that the data provided in new tags makes sense.

Definition at line 27 of file repository_tags.cc.

Here is the call graph for this function:

void publish::Publisher::ExportKeychain ( )
private

Definition at line 500 of file repository.cc.

Here is the call graph for this function:

void publish::GarbageCollect ( )
std::string publish::Repository::GetFqrnFromUrl ( const std::string &  url)
static

Tag names beginning with @ are interpreted as raw hashes

Definition at line 228 of file repository.cc.

Referenced by publish::SettingsBuilder::CreateSettingsRepository().

Here is the call graph for this function:

Here is the caller graph for this function:

catalog::SimpleCatalogManager * publish::Repository::GetSimpleCatalogManager ( )
protected

Definition at line 118 of file repository.cc.

Referenced by TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

bool publish::in_transaction ( ) const
private

Definition at line 307 of file repository.h.

Referenced by Abort().

Here is the caller graph for this function:

void publish::Publisher::Ingest ( )
private

Definition at line 870 of file repository.cc.

void publish::Publisher::InitSpoolArea ( )
private

Definition at line 583 of file repository.cc.

Referenced by TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

bool publish::is_publishing ( ) const
private

Definition at line 308 of file repository.h.

Referenced by Abort().

Here is the caller graph for this function:

bool publish::Repository::IsMasterReplica ( )

Checks whether the $url/.cvmfs_master_replica is available

Definition at line 233 of file repository.cc.

Here is the call graph for this function:

void publish::List ( )
void publish::Lock ( )
protected

Re-mount /cvmfs/$fqrn read-only

Referenced by SimpleChunkTables::Add(), SimpleChunkTables::Get(), and SimpleChunkTables::Release().

Here is the caller graph for this function:

class __attribute__ ((visibility("default"))) Publisher publish::ManagedNode ( Publisher *  p)
explicitprotected

Encapsulates operations on a dedicated publisher Collection of publisher failure states (see Check())

Definition at line 173 of file repository.h.

Referenced by Publisher().

Here is the caller graph for this function:

void publish::Publisher::MarkReplicatible ( bool  value)
private

Create empty $url/.cvmfs_master_replica

Definition at line 857 of file repository.cc.

Here is the call graph for this function:

std::string publish::meta_info ( ) const
void publish::Migrate ( )
private
void publish::Publisher::ManagedNode::Mount ( )
protected

Mounts the read-only layer followed by the union layer

Definition at line 51 of file repository_managed.cc.

Here is the call graph for this function:

bool publish::ObtainSysAdminCapabilityInternal ( cap_t  caps)

Definition at line 34 of file sync_union_overlayfs.cc.

Referenced by publish::SyncUnionOverlayfs::ObtainSysAdminCapability().

Here is the caller graph for this function:

void publish::Publisher::OnProcessCertificate ( const upload::SpoolerResult result)
private

Definition at line 533 of file repository.cc.

Referenced by PushCertificate().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::OnProcessHistory ( const upload::SpoolerResult result)
private

Definition at line 541 of file repository.cc.

Referenced by PushHistory().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::OnProcessMetainfo ( const upload::SpoolerResult result)
private

Definition at line 549 of file repository.cc.

Referenced by PushMetainfo().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::OnUploadManifest ( const upload::SpoolerResult result)
private

Definition at line 557 of file repository.cc.

Referenced by PushManifest().

Here is the caller graph for this function:

void publish::Publisher::OnUploadReflog ( const upload::SpoolerResult result)
private

Definition at line 563 of file repository.cc.

Referenced by PushReflog().

Here is the caller graph for this function:

void publish::Publisher::OnUploadWhitelist ( const upload::SpoolerResult result)
private

Definition at line 569 of file repository.cc.

Referenced by PushWhitelist().

Here is the caller graph for this function:

void publish::Publish ( )
private

Referenced by swissknife::CommandGraft::FileCallback(), and swissknife::CommandGraft::Main().

Here is the caller graph for this function:

publish::Publisher::Publisher ( const SettingsPublisher &  settings)
explicitprivate

Definition at line 620 of file repository.cc.

Referenced by publish::CmdAbort::Main(), publish::CmdTransaction::Main(), and publish::CmdDiff::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

publish::Publisher::Publisher ( )
private

Used by Create.

Definition at line 606 of file repository.cc.

void publish::Publisher::PushCertificate ( )
private

Definition at line 351 of file repository.cc.

Here is the call graph for this function:

void publish::Publisher::PushHistory ( )
private

Definition at line 361 of file repository.cc.

Referenced by EditTags().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::PushManifest ( )
private

Definition at line 389 of file repository.cc.

Referenced by notify::Publisher::Publish().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::PushMetainfo ( )
private

Definition at line 380 of file repository.cc.

Here is the call graph for this function:

void publish::Publisher::PushReflog ( )
private

Definition at line 426 of file repository.cc.

Referenced by notify::Publisher::Publish().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::PushWhitelist ( )
private

Definition at line 448 of file repository.cc.

Here is the call graph for this function:

publish::Replica::Replica ( const SettingsReplica &  settings)
explicitprivate

Definition at line 880 of file repository.cc.

publish::Repository::Repository ( const SettingsRepository &  settings)
explicit

Definition at line 63 of file repository.cc.

Referenced by publish::CmdInfo::Main(), and publish::CmdDiff::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

publish::Repository::Repository ( )
protected

Definition at line 49 of file repository.cc.

Here is the call graph for this function:

void publish::Publisher::Resign ( )
private

Definition at line 872 of file repository.cc.

void publish::Rollback ( )
private
void publish::RunSuidHelper ( const std::string &  verb,
const std::string &  fqrn 
)

Callout to cvmfs_suid_helper $verb $fqrn

Definition at line 128 of file repository_util.cc.

Referenced by AlterMountpoint().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string publish::SendTalkCommand ( const std::string &  socket,
const std::string &  cmd 
)

Definition at line 190 of file repository_util.cc.

Referenced by TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

Session* publish::session ( ) const
private

Definition at line 309 of file repository.h.

Referenced by FuseMain().

Here is the caller graph for this function:

void publish::SetInConfig ( const std::string &  path,
const std::string &  key,
const std::string &  value 
)

Replaces or creates $key=$value in the config file $path. Creates $path if necessary. If value is empty, the key is removed.

Definition at line 150 of file repository_util.cc.

Referenced by SetRootHash().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::ManagedNode::SetRootHash ( const shash::Any hash)
private

Definition at line 357 of file repository_managed.cc.

Here is the call graph for this function:

const signature::SignatureManager* publish::signature_mgr ( ) const

Definition at line 119 of file repository.h.

Referenced by Init().

Here is the caller graph for this function:

void publish::Snapshot ( )
private
const upload::Spooler* publish::spooler_catalogs ( ) const
private

Definition at line 311 of file repository.h.

Referenced by swissknife::Ingest::Main(), and swissknife::CommandSync::Main().

Here is the caller graph for this function:

const upload::Spooler* publish::spooler_files ( ) const
private

Definition at line 310 of file repository.h.

void publish::Publisher::Sync ( )
private

Definition at line 785 of file repository.cc.

Referenced by shrinkwrap::Sync(), shrinkwrap::SyncFull(), and TransactionImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::SyncImpl ( )
private

Definition at line 804 of file repository.cc.

Referenced by Sync().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Transaction ( )
private

Definition at line 284 of file repository.h.

Referenced by ExternalCacheManager::SizeOfTxn(), PosixCacheManager::SizeOfTxn(), RamCacheManager::SizeOfTxn(), ExternalCacheManager::StartTxn(), PosixCacheManager::StartTxn(), and RamCacheManager::StartTxn().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::TransactionImpl ( )
private

Definition at line 88 of file repository_transaction.cc.

Referenced by TransactionRetry().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::TransactionRetry ( )
private

Definition at line 42 of file repository_transaction.cc.

Referenced by Transaction().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::Publisher::ManagedNode::Unmount ( )
protected

Regular unmount of the read-write and the read-only layer and, if this does not work, a forced unmount

Definition at line 33 of file repository_managed.cc.

Here is the call graph for this function:

void publish::Publisher::UpdateMetaInfo ( )
private

Definition at line 874 of file repository.cc.

const whitelist::Whitelist* publish::whitelist ( ) const

Definition at line 122 of file repository.h.

Referenced by whitelist::Whitelist::CreateString(), manifest::DoVerify(), and swissknife::CommandLetter::Main().

Here is the caller graph for this function:

void publish::Publisher::WipeScratchArea ( )
private

Definition at line 20 of file repository_abort.cc.

virtual publish::~Publisher ( )
privatevirtual
publish::Replica::~Replica ( )
privatevirtual

Definition at line 884 of file repository.cc.

publish::Repository::~Repository ( )
virtual

Definition at line 102 of file repository.cc.

Here is the call graph for this function:

Variable Documentation

gateway::GatewayKey publish::gw_key_

Definition at line 366 of file repository.h.

Referenced by Publisher().

history::SqliteHistory* publish::history_
bool publish::in_transaction_
bool publish::is_publishing_

Definition at line 365 of file repository.h.

Referenced by CheckTransactionStatus(), and is_publishing().

const unsigned publish::kRequiredLayoutRevision = 142
static

The directory layout of the publisher node must be of matching revision

Definition at line 276 of file repository.h.

Referenced by publish::SettingsBuilder::CreateSettingsPublisherFromSession(), and Publisher().

int publish::llvl_

The log level, set to kLogNone if settings_.is_silent() == true

Definition at line 363 of file repository.h.

Referenced by CheckTransactionStatus(), Publisher(), and TransactionImpl().

UniquePtr<ManagedNode> publish::managed_node_

Definition at line 375 of file repository.h.

Referenced by Abort(), Publisher(), TransactionRetry(), and WipeScratchArea().

std::string publish::meta_info_

Definition at line 150 of file repository.h.

Referenced by CreateRootObjects(), DownloadRootObjects(), meta_info(), and PushMetainfo().

Publisher* publish::publisher_

Definition at line 222 of file repository.h.

Referenced by AlterMountpoint(), ClearScratch(), and SetRootHash().

UniquePtr<Session> publish::session_

Only really used gateway mode when a transaction is opened. The session takes an existing session token if it exists and drops the lease in abort. TODO(jblomer): that is not yet done. Once publish, tag, etc. are implemented, the lease should be dropped after the last successful write operation.

Definition at line 374 of file repository.h.

Referenced by Abort(), CheckTransactionStatus(), session(), TransactionImpl(), and TransactionRetry().

catalog::SimpleCatalogManager* publish::simple_catalog_mgr_

The read-only catalog manager, loaded on demand

Definition at line 144 of file repository.h.

Referenced by GetSimpleCatalogManager(), and ~Repository().

upload::Spooler* publish::spooler_catalogs_
UniquePtr<perf::StatisticsTemplate> publish::statistics_publish_

Definition at line 359 of file repository.h.

Referenced by ConstructSpoolers(), and ConstructSyncManagers().

SyncMediator* publish::sync_mediator_

Definition at line 381 of file repository.h.

Referenced by ConstructSyncManagers(), and SyncImpl().

SyncParameters* publish::sync_parameters_

Definition at line 380 of file repository.h.

Referenced by ConstructSyncManagers(), and SyncImpl().

publish::SyncUnion* publish::sync_union_

Definition at line 382 of file repository.h.

Referenced by ConstructSyncManagers(), and SyncImpl().

whitelist::Whitelist* publish::whitelist_