# Functions
ClearBOM returns an io.Reader that will skip over initial UTF-8 byte order marks.
No description provided by the author
GetCommit returns the latest commit set by the build variable.
GetPCEbyName gets a PCE by it's provided name.
GetPCEbyName gets a PCE by it's provided name.
GetProcesses returns a list of processes from an inputfile.
GetServicePortsCSV returns port proto list from a CSV.
GetServicePortsPCE returns PortProto list and PortRangeProto for use in a traffic query from a service object in the PCE.
GetTargetPCE gets the target PCE for a command.
GetTargetPCE gets the target PCE for a command.
GetVersion returns the version set by the build variable reads the PCE information from the JSON generated by the login command.
LogAPIResp will log the HTTP Requset, Request Header, Response Status Code, and Response Body The callType should be the name of call: GetAllLabels, GetAllWorkloads, etc.
LogAPIResp will log the HTTP Requset, Request Header, Response Status Code, and Response Body The callType should be the name of call: GetAllLabels, GetAllWorkloads, etc.
Replaces a blank string with <empty>.
LogDebug writes the log to workloader.log only if debug flag is set and never prints to stdout.
LogEndCommand is used at the end of each command.
LogError writes the error the workloader.log and always prints an error to stdout.
LogErrorf uses string formatting to write to log to workloader.log and always prints msg to stdout.
LogErrorfCode a custom exitCode and uses string formatting to write to log to workloader.log and always prints msg to stdout.
LogInfo writes the log to workloader.log and optionally prints msg to stdout.
LogInfof uses string formatting to write to log to workloader.log and optionally prints msg to stdout.
No description provided by the author
No description provided by the author
LogOutDesc returns the text of the logout command based on runtime.
LogStartCommand is used at the beginning of each command.
LogWarning writes the log to workloader.log and optionally prints msg to stdout.
LogWarningf uses string formatting to write to log to workloader.log and optionally prints msg to stdout.
ParseCSV parses a file and returns a slice of slice of strings.
ParseCsvHeaders parses a file and returns a slice of slice of strings and header map The header map points to the header index in the slice.
PtrToStr converts a pointer to a string.
ReplaceNewLine replaces the \r and \n with a space.
RootTemplate returns the root usage template.
No description provided by the author
No description provided by the author
SRootCmdTemplate returns the usage template for sub root commands.
StrToPtr returns a pointer from a string value.
SubCmdTemplate returns the usage template used for all subcommands.
No description provided by the author
WriteLineOutput will write the CSV one line at a time.
WriteOutput will write the CSV and/or stdout data based on the viper configuration.