github.com/kaituanwang/hyperledger@v2.0.1+incompatible/core/ledger/kvledger/ledger_filepath.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  SPDX-License-Identifier: Apache-2.0
     4  */
     5  
     6  package kvledger
     7  
     8  import (
     9  	"path/filepath"
    10  )
    11  
    12  func fileLockPath(rootFSPath string) string {
    13  	return filepath.Join(rootFSPath, "fileLock")
    14  }
    15  
    16  // LedgerProviderPath returns the absolute path of ledgerprovider
    17  func LedgerProviderPath(rootFSPath string) string {
    18  	return filepath.Join(rootFSPath, "ledgerProvider")
    19  }
    20  
    21  // BlockStorePath returns the absolute path of block storage
    22  func BlockStorePath(rootFSPath string) string {
    23  	return filepath.Join(rootFSPath, "chains")
    24  }
    25  
    26  // PvtDataStorePath returns the absolute path of pvtdata storage
    27  func PvtDataStorePath(rootFSPath string) string {
    28  	return filepath.Join(rootFSPath, "pvtdataStore")
    29  }
    30  
    31  // StateDBPath returns the absolute path of state level DB
    32  func StateDBPath(rootFSPath string) string {
    33  	return filepath.Join(rootFSPath, "stateLeveldb")
    34  }
    35  
    36  // HistoryDBPath returns the absolute path of history DB
    37  func HistoryDBPath(rootFSPath string) string {
    38  	return filepath.Join(rootFSPath, "historyLeveldb")
    39  }
    40  
    41  // ConfigHistoryDBPath returns the absolute path of configHistory DB
    42  func ConfigHistoryDBPath(rootFSPath string) string {
    43  	return filepath.Join(rootFSPath, "configHistory")
    44  }
    45  
    46  // BookkeeperDBPath return the absolute path of bookkeeper DB
    47  func BookkeeperDBPath(rootFSPath string) string {
    48  	return filepath.Join(rootFSPath, "bookkeeper")
    49  }