Documentation
¶
Index ¶
- func CopyDirectory(src, des string) error
- func DeleteDirectory(path string) error
- func DeleteFile(path string) error
- func DownloadAndExtractTarGz(url, tarballPath, extractedPath string) error
- func ExtractTarGz(src string, dest string) error
- func FileOrFolderExists(path string) bool
- func LibraryPathEnv(binaryDir string) (string, string, error)
- func SetLibraryPaths(binaryDir string) error
- func WithLibraryPathEnv(env []string, binaryDir string) ([]string, error)
- func WriteFile(path, content string) error
- type Key
- type KeyFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirectory ¶
CopyDirectory uses the cp -r command to copy files or directories from src to des.
func DeleteDirectory ¶
func DeleteFile ¶
func DownloadAndExtractTarGz ¶
func ExtractTarGz ¶
func FileOrFolderExists ¶
FileOrFolderExists checks if a file or folder exists at the given path.
func SetLibraryPaths ¶
func WithLibraryPathEnv ¶ added in v0.3.5
Types ¶
type Key ¶ added in v0.1.2
type Key struct {
Address string `json:"address"`
Mnemonic string `json:"mnemonic"`
AddressType crypto.AddressType `json:"address_type"`
}
func GenerateKey ¶ added in v0.1.2
func GenerateKey(hrp string, addressType crypto.AddressType) (*Key, error)
func NewKey ¶ added in v0.1.2
func NewKey(address, mnemonic string, addressType crypto.AddressType) *Key
func RecoverKey ¶ added in v0.1.2
func RecoverKey(hrp, mnemonic string, addressType crypto.AddressType) (*Key, error)
type KeyFile ¶ added in v0.1.2
func NewKeyFile ¶ added in v0.1.2
func NewKeyFile() KeyFile
func (KeyFile) GetMnemonic ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.