driver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	// Reuse reuses the driver
	Reuse(ctx context.Context) error
	// Launch launches the driver
	Launch(ctx context.Context) error
	DataSourceName() string
	Dispose(context.Context) error
}

Driver defines the behaviours of the driver

func NewDefaultDriver

func NewDefaultDriver(engine, image string) (Driver, error)

NewDefaultDriver default factory method for Driver

func NewDockerDriver

func NewDockerDriver(provider provider.Provider, image string) (Driver, error)

NewDockerDriver defines a docker implementation of Driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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