package
5.0.0+incompatible
Repository: https://github.com/hpe-storage/common-host-libs.git
Documentation: pkg.go.dev

# Functions

ConvertArrayOfIntToString converts a given list of integer to comma separated string value.
CopyFile copies a file from src to dst.
CreateDirIfNotExists to create a directory if it is not already available.
DecodeBase64Credential to plain text if its b64 encoded, else return the data as-is.
ExecCommandOutput returns stdout and stderr in a single string, the return code, and error.
ExecCommandOutputWithStdinArgs returns stdout and stderr in a single string, the return code, and error.
ExecCommandOutputWithTimeout executes ExecCommandOutput with the specified timeout.
FileCheck : checks for error.
FileDelete : delete the file.
FileExists does a stat on the path and returns true if it existsIn addition, dir returns true if the path is a directory.
FileGetStrings : get the file contents as array of string.
FileGetStringsWithPattern : get the filecontents as array of string matching pattern pattern.
FileloadGob : Load and Decode Gob file.
FileReadFirstLine read first line from a file TODO: make it OS independent.
FileSaveGob : save the Gob file.
FileWriteString : write line to the path.
FileWriteStrings writes all lines to file specified by path.
FindStringSubmatchMap : find and build the map of named groups.
No description provided by the author
GetNltHome returns base install directory of NLT or HPE cloud toolkits.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InitializeRouter initializes all handlers.
InitializeWatcher is used to initialize fileWatch with anonymous function and new watcher.
IsFileSymlink to check if the path exists and if it's a symlink.
ToCamelCase converts the given snake_case string to camelCase.
ToSnakeCase converts the given camelCase string into snake_case.

# Structs

FileWatch contains watcher attributes.
Route struct.