package
1.10.16
Repository: https://github.com/hyperhq/hypercli.git
Documentation: pkg.go.dev

# Packages

Package checker provide Docker specific implementations of the go-check.Checker interface.

# Functions

CompareDirectoryEntries compares two sets of FileInfo (usually taken from a directory) and returns an error if different.
ConsumeWithSpeed reads chunkSize bytes from reader before sleeping for interval duration.
ConvertSliceOfStringsToMap converts a slices of string in a map with the strings as key and an empty string as values.
DockerCmd executes a docker command and returns the output and the exit code.
DockerCmdInDir executes a docker command in a directory and returns the output, the exit code and the error (if any).
DockerCmdInDirWithTimeout executes a docker command in a directory with a timeout and returns the output, the exit code and the error (if any).
DockerCmdWithError executes a docker command that is supposed to fail and returns the output, the exit code and the error.
DockerCmdWithStdoutStderr executes a docker command and returns the content of the stdout, stderr and the exit code.
DockerCmdWithTimeout executes a docker command with a timeout, and returns the output, the exit code and the error (if any).
GetExitCode returns the ExitStatus of the specified error if its type is exec.ExitError, returns 0 and an error otherwise.
IsKilled process the specified error and returns whether the process was killed or not.
ListTar lists the entries of a tar.
ParseCgroupPaths parses 'procCgroupData', which is output of '/proc/<pid>/cgroup', and returns a map which cgroup name as key and path as value.
ProcessExitCode process the specified error and returns the exit status code if the error was of type exec.ExitError, returns nothing otherwise.
RandomTmpDirPath provides a temporary path with rand string appended.
RunAtDifferentDate runs the specified function with the given time.
RunCommand runs the specified command and returns the exitCode different from 0 and the error if something bad happened.
RunCommandPipelineWithOutput runs the array of commands with the output of each pipelined with the following (like cmd1 | cmd2 | cmd3 would do).
RunCommandWithOutput runs the specified command and returns the combined output (stdout/stderr) with the exitCode different from 0 and the error if something bad happened.
RunCommandWithOutputAndTimeout runs the specified command "timeboxed" by the specified duration.
RunCommandWithOutputForDuration runs the specified command "timeboxed" by the specified duration.
RunCommandWithStdoutStderr runs the specified command and returns stdout and stderr separately with the exitCode different from 0 and the error if something bad happened.
UnmarshalJSON deserialize a JSON in the given interface.

# Structs

ChannelBuffer holds a chan of byte array that can be populate in a goroutine.