launcher

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID    string
	URL   string
	Token string
}

Config contains configuration of validator service instance.

type Docker

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

Docker implements the logic to launch test container.

func New

func New(imageName, basePath string) (*Docker, error)

New is the constructor of dockerLauncher

func (*Docker) Launch

func (l *Docker) Launch(ctx context.Context, name string) (*Config, error)

Launch implements launcher.Launcher interface by starting image using installed Docker service.

func (*Docker) Stop

func (l *Docker) Stop(ctx context.Context, id string) error

Stop stops the docker container by the given ID.

Jump to

Keyboard shortcuts

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