Files
threshold/internal/cmd/base/internal/docker/docker.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
526 B
Go
Raw Normal View History

// Copyright IBM Corp. 2020, 2025
2023-02-02 17:15:17 -08:00
// SPDX-License-Identifier: BUSL-1.1
2020-09-28 16:05:15 -04:00
package docker
import (
"errors"
"sync"
)
var (
2021-05-03 13:11:28 -05:00
StartDbInDocker func(dialect string, opt ...Option) (func() error, string, string, error) = startDbInDockerUnsupported
2020-09-28 16:05:15 -04:00
ErrDockerUnsupported = errors.New("docker is not currently supported on this platform")
mx = sync.Mutex{}
)
2021-05-03 13:11:28 -05:00
func startDbInDockerUnsupported(dialect string, opt ...Option) (cleanup func() error, retURL, container string, err error) {
2020-09-28 16:05:15 -04:00
return nil, "", "", ErrDockerUnsupported
}