dockercompose

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dockercompose is a runner to up & down environment through Docker-Compose.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

type Option

type Option func(*Config)

Option of New docker-compose runner.

func WithEnvVars

func WithEnvVars(envVas map[string]string) Option

func WithWorkingDir

func WithWorkingDir(dir string) Option

type Runner

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

func New

func New(filename string, opts ...Option) *Runner

New docker-compose runner with filename of docker-compose.yml and options.

runner := New("./docker-compose.yml")

func (*Runner) Down

func (r *Runner) Down(tb testing.TB) error

func (*Runner) Up

func (r *Runner) Up(tb testing.TB) error

Jump to

Keyboard shortcuts

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