Documentation ¶
Index ¶
- Constants
- func BasePath(name string) string
- func ExpandDir(targetPath string) string
- func GetGssmrGenesisPath() string
- func GetGssmrGenesisRawPath() string
- func GetKusamaGenesisPath() string
- func HomeDir() string
- func KeystoreDir(basepath string) (keystorepath string, err error)
- func KeystoreFilepaths(basepath string) ([]string, error)
- func KeystoreFiles(basepath string) ([]string, error)
- func NewTestBasePath(t *testing.T, name string) string
- func NewTestDir(t *testing.T) string
- func PathExists(p string) bool
- func RemoveTestDir(t *testing.T)
Constants ¶
const TestDir = "./test_data"
TestDir test data directory
Variables ¶
This section is empty.
Functions ¶
func BasePath ¶
BasePath attempts to create a data directory using the given name within the gossamer directory within the user's HOME directory, returns absolute path or, if unable to locate HOME directory, returns within current directory
func GetGssmrGenesisPath ¶
func GetGssmrGenesisPath() string
GetGssmrGenesisPath gets the gssmr human-readable genesis path
func GetGssmrGenesisRawPath ¶ added in v0.2.0
func GetGssmrGenesisRawPath() string
GetGssmrGenesisRawPath gets the gssmr raw genesis path
func GetKusamaGenesisPath ¶ added in v0.3.2
func GetKusamaGenesisPath() string
GetKusamaGenesisPath gets the kusama genesis path
func KeystoreDir ¶
KeystoreDir returns the absolute filepath of the keystore directory
func KeystoreFilepaths ¶
KeystoreFilepaths lists all the keys in the basepath/keystore/ directory and returns them as a list of filepaths
func KeystoreFiles ¶
KeystoreFiles returns the filenames of all the keys in the basepath's keystore
func NewTestBasePath ¶
NewTestBasePath create new test data directory
func PathExists ¶
PathExists returns true if the named file or directory exists, otherwise false
Types ¶
This section is empty.