# Functions
Creates a new tar file and wrties bytes from io.ReadCloser.
ExecCmd executes a command with args and returns its output as a string along with an error, if any.
ExecCmdWithStdStreams execute a command with the specified standard streams.
GetCgroupProcess returns the cgroup for the specified process process.
GetOwnCgroup returns the cgroup for the current process.
No description provided by the author
Find a random, open port on the host.
GuardedRemoveAll functions much like os.RemoveAll but will not delete certain catastrophic paths.
MaybeMoveToSubCgroup moves the current process in a sub cgroup when it is running in the root cgroup on a system that uses cgroupv2.
MovePauseProcessToScope moves the pause process used for rootless mode to keep the namespaces alive to a separate scope.
MoveRootlessNetnsSlirpProcessToUserSlice moves the slirp4netns process for the rootless netns into a different scope so that systemd does not kill it with a container.
MoveUnderCgroup moves a group of processes to a new cgroup.
MoveUnderCgroupSubtree moves the PID under a cgroup subtree.
No description provided by the author
RemoveScientificNotationFromFloat returns a float without any scientific notation if the number has any.
RunsOnSystemd returns whether the system is using systemd.
RunUnderSystemdScope adds the specified pid to a systemd scope.
Tar creates a tarball from source and returns a readcloser of it.
TarChrootToFilesystem creates a tarball from source and writes to an os.file provided while chrooted to the source.
TarToFilesystem creates a tarball from source and writes to an os.file provided.
TarWithChroot creates a tarball from source and returns a readcloser of it while chrooted to the source.
UntarToFileSystem untars an os.file of a tarball to a destination in the filesystem.