testlibs

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package testlibs allows Tast tests to connect to the Test Libs Server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibsService

type LibsService struct {
	// contains filtered or unexported fields
}

LibsService represents connection to the Test Libs Service.

func NewLibsService

func NewLibsService() (*LibsService, error)

NewLibsService connects to the TestLibsService and returns a struct to represent that connection.

func (*LibsService) Close

func (ls *LibsService) Close(ctx context.Context)

Close requests to kill all running containers and stops the connection to TestLibsService.

func (*LibsService) StartLib

func (ls *LibsService) StartLib(ctx context.Context, name string, options ...string) (*TestLib, error)

StartLib requests that the TestLibsService start up a docker container with the given name.

type TestLib

type TestLib struct {
	// contains filtered or unexported fields
}

TestLib represents a single running docker container.

func (*TestLib) Close

func (l *TestLib) Close(ctx context.Context)

Close requests that the TestLibsService kill the docker container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL