docker

package
v0.0.0-...-3faa8e7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	StopAndRemove() error
	GetIP() (string, error)
}

type Docker

type Docker interface {
	// Run can be called with the following to set environment variables and exposed ports
	// Run("containerName","imagePath",[]string{"MONGO_HOST=172.0.0.1"}, []string{"8080/tcp","127.0.0.1"})
	// This utilises  portSpecTemplate and the expected format for port specifications "ip:hostPort:containerPort"
	Run(name, imagePath string, envVars []string, hostconfig []string) (Container, error)
	Pull(imagePath string) error
}

func NewDocker

func NewDocker() (Docker, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳