package
6.3.5+incompatible
Repository: https://github.com/clearlinux/mixer-tools.git
Documentation: pkg.go.dev
# Functions
CopyFile copies a file, overwriting the destination if it exists.
CopyFileNoOverwrite copies a file only if the destination file does not exist.
CopyFileWithOptions copies a file, overwriting the destination if it exist and allows options to be set for following links, syncing to disk, or preserving file permissions/ownership.
CreateCertTemplate will construct the template for needed openssl metadata instead of using an attributes.cnf file.
CreateKeyPair constructs an RSA keypair in memory.
DownloadFile will download a file from the passed URL and write that file to the supplied file path.
DownloadFileAsString will download a file from the passed URL and return the result as a string.
GenerateCertificate will create the private signing key and public certificate for clients to use and writes them to disk.
Git runs git with arguments and returns in case of failure.
ListVisibleFiles reads the directory named by dirname and returns a sorted list of names.
ReadFileAndSplit tokenizes the given file and converts in into a slice split by the newline character.
RunCommand runs the given command with args and prints output.
RunCommandInput runs the given command with args and input from an io.Reader, and prints output.
RunCommandOutput executes the command with arguments and stores its output in memory.
RunCommandOutputEnv executes the command with arguments and environment and stores its output in memory.
RunCommandSilent runs the given command with args and does not print output.
RunCommandTimeout runs the given command with timeout + args and does not print command output.
UnpackFile unpacks a .tar or .tar.gz/.tgz file to a given directory.