utils

package
v0.0.0-...-f45be23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIndexToLabel

func AddIndexToLabel(dict *map[string][]int, label string, index int)

func BuildHash

func BuildHash(bytes *[]byte) string

func CopyFile

func CopyFile(src string, dst string) (int64, error)

func CyphernodeInfoFileExists

func CyphernodeInfoFileExists() bool

func DataDirExists

func DataDirExists() (bool, error)

func GetCyphernodeInfoFilePath

func GetCyphernodeInfoFilePath() string

func GetDataDirPath

func GetDataDirPath() string

func GetInstallDirPath

func GetInstallDirPath() string

func GetInstalledAppsIndexFilePath

func GetInstalledAppsIndexFilePath() string

func GetKeysFilePath

func GetKeysFilePath() string

func GetLockFilePath

func GetLockFilePath() string

func GetRepoDirPath

func GetRepoDirPath() string

func GetRepoDirPathFor

func GetRepoDirPathFor(repo string) string

func GetRepoIndexFilePath

func GetRepoIndexFilePath() string

func GetSourceFilePath

func GetSourceFilePath() string

func GetStateFilePath

func GetStateFilePath() string

func InstallDirExists

func InstallDirExists() (bool, error)

func InstalledAppsIndexFileExists

func InstalledAppsIndexFileExists() bool

func KeysFileExists

func KeysFileExists() bool

func LockFileExists

func LockFileExists() bool

func RandomString

func RandomString(length int, encodeToString func([]byte) string) string

func RepoDirExists

func RepoDirExists() (bool, error)

func RepoExists

func RepoExists(repoDir string) (bool, error)

func RepoIndexFileExists

func RepoIndexFileExists() bool

func SliceIndex

func SliceIndex(limit int, predicate func(i int) bool) int

func SourceFileExists

func SourceFileExists() bool

func StateFileExists

func StateFileExists() bool

func ValidDataDirExists

func ValidDataDirExists() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL