package
2.1.0+incompatible
Repository: https://github.com/openebs/node-disk-manager.git
Documentation: pkg.go.dev
# Functions
AddUniqueStringtoSlice ensures there are no repeated devices added to a slice.
CheckErr to handle command errors.
CheckFalsy checks for non-truthiness of the passed argument.
CheckTruthy checks for truthiness of the passed argument.
Contains is a util function which returns true if one key is present in array else it returns false.
ContainsIgnoredCase is a util function which returns true if one key is present in array else it returns false.
Fatal prints the message (if provided) and then exits.
FD_ISSET tests to see if a file descriptor is part of the set.
FD_SET add a given file descriptor from a setit perform bit shift operations and set fdset.ie if value of i is 2 then it will set fdset's value as {[16]int64{4}}.
FD_ZERO clears a setit perform bit shift operations and clear fdset.
Hash retrieves an encoded string using the md5 encrypt.
IsMatchRegex is a utility function which returns true if the string -s matches with the regex specified.
MatchIgnoredCase is a util function which returns true if any of the keys are present as a string in given string - s This function is not case sensitive.
RemoveString removes all occurrences of a string from slice.
SparseFileCreate will create a new sparse file if none exists at the give path and will set the size to specified value.
SparseFileDelete will delete the sparse file if it exists.
SparseFileInfo will return the stats of the sparse file.
StateStatus returns enable if state is true and disable if state is false.
StringToInt32 converts a string type to corresponding *int32 type.
StrToInt32 converts a string type to corresponding *int32 type
NOTE: This swallows the error if any.