log file path and string to append
Success or Failure Message
Run all concurrent promises on an array of data. Set a limit to determine how many can run at the same time.
array of arrays containing params for each run
function to run concurrently that returns a promise
how many concurrent promises should be running
array containing results
Asynchronously create files at their specified paths. Response data is returned once all files have been created, or if there is an error.
list of files (path and data) to be created
logger function to log activity
Success or Failure Message and Files
Create an Axios Client to pair with Identity Propogation and Deletion Commands.
did string
delete or put method for axios client
jws of identity.json for identity creation/deletion
Success or Failure Message from API endpoint
Asynchronously delete files at their specified paths. Response data is returned once all files have been deleted, or if there is an error.
list of files (path) to be deleted
logger function to log activity
Success or Failure Message and list of deleted files
Asynchronously delete all files in a specified directory that match a specified regular expression. This uses regex.test() to determine if it should be deleted. This does not search for files recursively.
regular expression matching files you want deleted
root directory that the files are all in
logger function to log activity
outcome of request and all files deleted
Generate a logger to pass a string to a file. Empty strings will return as a line divider.
absolute path to log file
logger function
Get the redirect url to determine a final destination of a url string. If a proxyConfig is specified and the first attempt times out a second attempt will be made using the proxy.
url that will redirect
config object for proxy service to use
force the proxy to be used the first time instead of on the second attempt
success of attempt and redirect url
Handles RunType Failures and returns a human readable message. If PSQR_ENV is set to debug, this will output a stack trace.
error object to manage
proper error message to use
Asynchronously retrieve content of files at their specified paths. Response data is returned once all files have been retrieved, or if there is an error.
list of files (path) to get the contents of
Success or Failure Message and all file data
Asynchronously retrieve all files in a specified directory that match a specified regular expression. This uses regex.test() to determine if it should be included. This does not search for files recursively.
regular expression matching files you want included
root directory that the files are all in
outcome of request and all file data
Append a timestamp to a log file as a newline.