refactor: Make docker pacakge an internal package of cmd/base

The docker package and its StartDbInDocker function should only be used
by the `boundary dev` command now. So moving it into an internal package
of `base` will prevent it from being use for tests accidentally, while
still allowing it to be used for `boundary dev`.
This commit is contained in:
Timothy Messier committed 2021-09-09 13:42:01 -04:00
1 parent ecdcf72e0e
commit 2ee1d4e6e4
4 files changed
+1 -1

No files matched your search

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