package
8.30.6+incompatible
Repository: https://github.com/brian1917/workloader.git
Documentation: pkg.go.dev

# Functions

ClearBOM returns an io.Reader that will skip over initial UTF-8 byte order marks.
GetCommit returns the latest commit set by the build variable.
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.
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.
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.
LogInfo writes the log to workloader.log and never prints to stdout.
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.
ParseCSV parses a file and returns a slice of slice of strings.
ReplaceNewLine replaces the \r and \n with a space.
RootTemplate returns the root usage template.
SRootCmdTemplate returns the usage template for sub root commands.
SubCmdTemplate returns the usage template used for all subcommands.
WriteOutput will write the CSV and/or stdout data based on the viper configuration.

# Variables

Commit is the latest commit.
Logger is the global logger for Workloader.
Version is set by build variable.