6db32fde |
package main
import (
"io" |
18587469 |
"os" |
6db32fde |
"os/exec" |
01094c15 |
"time" |
cc5fb986 |
|
51090717 |
"github.com/docker/docker/pkg/integration" |
6db32fde |
)
|
382c96ee |
func getPrefixAndSlashFromDaemonPlatform() (prefix, slash string) {
if daemonPlatform == "windows" {
return "c:", `\`
}
return "", "/"
}
|
6db32fde |
func getExitCode(err error) (int, error) { |
51090717 |
return integration.GetExitCode(err) |
6db32fde |
}
|
97b50e0f |
func processExitCode(err error) (exitCode int) { |
51090717 |
return integration.ProcessExitCode(err) |
97b50e0f |
}
|
6b3c9281 |
func isKilled(err error) bool { |
51090717 |
return integration.IsKilled(err) |
671c1220 |
}
|
97b50e0f |
func runCommandWithOutput(cmd *exec.Cmd) (output string, exitCode int, err error) { |
51090717 |
return integration.RunCommandWithOutput(cmd) |
6db32fde |
}
func runCommandWithStdoutStderr(cmd *exec.Cmd) (stdout string, stderr string, exitCode int, err error) { |
51090717 |
return integration.RunCommandWithStdoutStderr(cmd) |
6db32fde |
}
|
5dbaea1c |
func runCommandWithOutputForDuration(cmd *exec.Cmd, duration time.Duration) (output string, exitCode int, timedOut bool, err error) { |
51090717 |
return integration.RunCommandWithOutputForDuration(cmd, duration) |
5dbaea1c |
}
func runCommandWithOutputAndTimeout(cmd *exec.Cmd, timeout time.Duration) (output string, exitCode int, err error) { |
51090717 |
return integration.RunCommandWithOutputAndTimeout(cmd, timeout) |
c6965e3e |
}
|
6db32fde |
func runCommand(cmd *exec.Cmd) (exitCode int, err error) { |
51090717 |
return integration.RunCommand(cmd) |
6db32fde |
}
|
b81105ea |
func runCommandPipelineWithOutput(cmds ...*exec.Cmd) (output string, exitCode int, err error) { |
51090717 |
return integration.RunCommandPipelineWithOutput(cmds...) |
b81105ea |
}
|
e5e8669c |
func unmarshalJSON(data []byte, result interface{}) error { |
51090717 |
return integration.UnmarshalJSON(data, result) |
e5e8669c |
}
func convertSliceOfStringsToMap(input []string) map[string]struct{} { |
51090717 |
return integration.ConvertSliceOfStringsToMap(input) |
01094c15 |
} |
18587469 |
func compareDirectoryEntries(e1 []os.FileInfo, e2 []os.FileInfo) error { |
51090717 |
return integration.CompareDirectoryEntries(e1, e2) |
18587469 |
} |
cc5fb986 |
|
6b3c9281 |
func listTar(f io.Reader) ([]string, error) { |
51090717 |
return integration.ListTar(f) |
cc5fb986 |
} |
9e5592d6 |
|
e65a7dab |
func randomTmpDirPath(s string, platform string) string {
return integration.RandomTmpDirPath(s, platform) |
df533418 |
}
|
417e48e4 |
func consumeWithSpeed(reader io.Reader, chunkSize int, interval time.Duration, stop chan bool) (n int, err error) { |
51090717 |
return integration.ConsumeWithSpeed(reader, chunkSize, interval, stop) |
8a81c462 |
} |
a7639c2e |
func parseCgroupPaths(procCgroupData string) map[string]string { |
51090717 |
return integration.ParseCgroupPaths(procCgroupData) |
b3e8ab30 |
} |
1406cb35 |
func runAtDifferentDate(date time.Time, block func()) { |
51090717 |
integration.RunAtDifferentDate(date, block) |
1406cb35 |
} |