Documentation ¶
Index ¶
- Constants
- func DefaultTestLogger() log.Logger
- func DockerClient(t TestingT) *dockerClient.Client
- func Eventually(timeout time.Duration, f func() bool) bool
- func InitSwarmEnvironment(t *testing.T, ctx context.Context)
- func LocalIP() string
- func LogSwarmServices(t *testing.T, ctx context.Context)
- func PrintLog(log Log, w io.Writer)
- func RequireEventually(t TestingT, duration time.Duration, f func(t TestingT))
- func SkipUnlessSwarmIsEnabled(t *testing.T)
- func VerifyFilesExist(t TestingT, directories ...string) bool
- func WithContext(f func(ctx context.Context))
- func WithContextAndShutdown(f func(ctx context.Context) govnr.ShutdownWaiter)
- type HttpServer
- type Log
- type LogLine
- type TestingT
Constants ¶
View Source
const DOCKER_API_VERSION = "1.40"
Variables ¶
This section is empty.
Functions ¶
func DefaultTestLogger ¶
func DockerClient ¶ added in v1.0.0
func DockerClient(t TestingT) *dockerClient.Client
func InitSwarmEnvironment ¶ added in v0.22.0
func RequireEventually ¶ added in v0.22.0
* run the test func with a testing.T -like reporter func will run eventuallyIterations times at most, but will not start later than the specified duration expects the test func to succeed at least once, at which point this function returns immediately, Otherwise, the parent test will fail with the details of the last func failure.
func VerifyFilesExist ¶ added in v1.7.0
func WithContext ¶ added in v0.22.0
func WithContextAndShutdown ¶ added in v0.22.0
func WithContextAndShutdown(f func(ctx context.Context) govnr.ShutdownWaiter)
Types ¶
type HttpServer ¶
func CreateHttpServer ¶
func CreateHttpServer(path string, port int, f func(writer http.ResponseWriter, request *http.Request)) HttpServer
Click to show internal directories.
Click to hide internal directories.