Versions in this module Expand all Collapse all v1 v1.3.7 Jul 17, 2024 Changes in this version + func ContainsIgnoreCase(s, substr string) bool + func ConvertInterfaceToMap(value interface{}) (map[string]interface{}, error) + func DirectoryExists(dirName string) bool + func FileExists(filename string) bool + func Filter[T any](input []T, f func(T) bool) []T + func FindErrorLogs(rootDirs ...string) + func GetAPIContext() (context.Context, context.CancelFunc) + func GetONRContext() (context.Context, context.CancelFunc) + func GetRealFilePath(path string) string + func GetSHA256FromDisk(binPath string) (string, error) + func GetSSHConnectionString(publicIP, certFilePath string) string + func IsExecutable(filename string) bool + func IsSSHAgentAvailable() bool + func IsSSHAgentIdentityValid(identity string) (bool, error) + func IsUnsignedSlice(n []int) bool + func ListSSHAgentIdentities() ([]string, error) + func MapWithError[T, U any](input []T, f func(T) (U, error)) ([]U, error) + func Map[T, U any](input []T, f func(T) U) []U + func NewBlsSecretKeyBytes() ([]byte, error) + func ReadSSHAgentIdentityPublicKey(identityName string) (string, error) + func SearchSHA256File(file []byte, toSearch string) (string, error) + func SetupRealtimeCLIOutput(cmd *exec.Cmd, redirectStdout bool, redirectStderr bool) (*bytes.Buffer, *bytes.Buffer) + func SortUint32(arr []uint32) + func SplitComaSeparatedInt(s string) []int + func SplitComaSeparatedString(s string) []string + func SplitKeyValueStringToMap(str string, delimiter string) (map[string]string, error) + func SplitStringWithQuotes(str string, r rune) []string + func TimedFunction(f func() (interface{}, error), name string, timeout time.Duration) (interface{}, error) + func ToNodeID(certBytes []byte, keyBytes []byte) (ids.NodeID, error) + func Unique(slice []string) []string + func UserHomePath(filePath ...string) string + func ValidateJSON(path string) ([]byte, error)