Versions in this module Expand all Collapse all v2 v2.4.0 Jul 9, 2021 Changes in this version + const DefaultStopTimeout + func InitDB(ctx context.Context, dockerClient *client.Client, containerID, dataDir string) error + func PrintLastPostgresLogs(ctx context.Context, dockerClient *client.Client, ...) + func StartPostgres(ctx context.Context, dockerClient *client.Client, containerID, dataDir string, ...) error + func TrimPort(hostname string) string + type ErrHealthCheck struct + ExitCode int + Output string + func (e *ErrHealthCheck) Error() string v2.2.0 Feb 9, 2021 Changes in this version + const DataStateAtFormat + const ViewLogsCmd + func AddVolumesToHostConfig(ctx context.Context, docker *client.Client, hostConfig *container.HostConfig, ...) error + func CheckContainerReadiness(ctx context.Context, dockerClient *client.Client, containerID string) (err error) + func DetectPGVersion(dataDir string) (float64, error) + func DiscoverDataStateAt(input io.Reader) (string, error) + func ExecCommand(ctx context.Context, dockerClient *client.Client, containerID string, ...) error + func ExecCommandWithOutput(ctx context.Context, dockerClient *client.Client, containerID string, ...) (string, error) + func GeneratePassword() (string, error) + func GetMountsFromMountPoints(dataDir string, mountPoints []types.MountPoint) []mount.Mount + func IsEmptyDirectory(dir string) (bool, error) + func PrintContainerLogs(ctx context.Context, dockerClient *client.Client, containerID string) + func PullImage(ctx context.Context, dockerClient *client.Client, image string) error + func RemoveContainer(ctx context.Context, dockerClient *client.Client, containerID string, ...) + func StopContainer(ctx context.Context, dockerClient *client.Client, containerID string, ...) + func StopPostgres(ctx context.Context, dockerClient *client.Client, containerID, dataDir string) error + func TouchFile(filename string) error