This change allows to import and use core modules from "debos" package and
actions from "actions" package. Add prefix 'debos.' to all symbols imported
from core "debos" package to satisfy syntax check.
Package "actions" shouldn't keep any common function or structure:
- function 'DownloadHttpUrl()' is moved from 'DownloadAction' to "debos"
package. New file 'net.go' has been added to keep a common network functions
in core part of debos.
- move common functions for extracting files from 'UnpackAction' to 'debos'
package. File 'archiver.go' has been added for common operations on archives.
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Factor out the command runner helper into its own file and make it an
object rather then a helper function so multiple runs can easily be done
using the same setup. Also rather then pulling out the output afterwards
implement a small object implementing the Writer interface to be used
for stdout/stderr which simply re-outputs the information line-based
with a prefix attached for easy debugging.
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>