# Functions
createCommands forms the podman save and load commands used by SCP.
CreateSCPCommand takes an existing command, appends the given arguments and returns a configured podman command for image scp.
execPodman executes the podman save/load command given the podman binary.
No description provided by the author
ExtractImage pulls out the last line of output from save/load (image id).
GetServiceInformation takes the parsed list of hosts to connect to and validates the information.
No description provided by the author
No description provided by the author
loadToRemote takes image and remote connection information.
LoginUser starts the user process on the host so that image scp can use systemd-run.
parseImageSCPArg returns the valid connection, and source/destination data based off of the information provided by the user arg is a string containing one of the cli arguments returned is a filled out source/destination options structs as well as a connections array and an error if applicable.
remoteArgLength is a helper function to simplify the extracting of host argument data returns an int which contains the length of a specified index in a host::image string.
saveToRemote takes image information and remote connection information.
ScpTag is a helper function for native podman to tag an image after a local load from image SCP.
No description provided by the author
No description provided by the author
validateImageName makes sure that the image given is valid and no injections are occurring we simply use this for error checking, bot setting the image.
No description provided by the author
validateSCPArgs takes the array of source and destination options and checks for common errors.
# Variables
DeepCopy does a deep copy of a structure Error checking of parameters delegated to json engine.