Files
threshold/internal/docker/docker.go
T
Jeff Mitchell c1a1f8bb1b Separate out docker dep into package (#482)
This also then removes support for docker-based containing starting (for
now) from platforms other than windows/darwin/linux as there are build
issues on several.
2020-09-28 16:05:15 -04:00

19 lines
416 B
Go

package docker
import (
"errors"
"sync"
)
var (
StartDbInDocker func(string) (func() error, string, string, error) = startDbInDockerUnsupported
ErrDockerUnsupported = errors.New("docker is not currently supported on this platform")
mx = sync.Mutex{}
)
func startDbInDockerUnsupported(dialect string) (cleanup func() error, retURL, container string, err error) {
return nil, "", "", ErrDockerUnsupported
}