github.com/kotalco/kotal@v0.3.0/controllers/shared/path.go (about) 1 package shared 2 3 import "fmt" 4 5 const ( 6 // BlockchainDataSubDir is the blockchain data sub directory 7 BlockchainDataSubDir = "kotal-data" 8 // SecretsSubDir is the secrets (private keys, password ... etc) sub directory 9 SecretsSubDir = ".kotal-secrets" 10 // ConfigSubDir is the configuration sub directory 11 ConfigSubDir = "kotal-config" 12 ) 13 14 // PathData returns blockchain data directory 15 func PathData(homeDir string) string { 16 return fmt.Sprintf("%s/%s", homeDir, BlockchainDataSubDir) 17 } 18 19 // PathSecrets returns secrets directory 20 func PathSecrets(homeDir string) string { 21 return fmt.Sprintf("%s/%s", homeDir, SecretsSubDir) 22 } 23 24 // PathConfig returns configuration directory 25 func PathConfig(homeDir string) string { 26 return fmt.Sprintf("%s/%s", homeDir, ConfigSubDir) 27 }