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