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:
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
|
||||
}
|
||||
Reference in new issue
Block a user