docker

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetworkConnect

func NetworkConnect(network string, containerID string) error

NetworkConnect connects a container to the given network.

func StopContainer added in v0.4.0

func StopContainer(container *Container, timeout time.Duration) error

StopContainer stops and removes a running container.

Types

type Container

type Container struct {
	ID           string
	ExposedPorts map[string][]nat.PortBinding
	// contains filtered or unexported fields
}

Container represents a docker container and holds the information required for communicating with the it.

func StartLocalStackContainer

func StartLocalStackContainer(envars map[string]string) (*Container, error)

StartLocalStackContainer runs a localstack container to mock AWS services. Provide configuration using envars.

Jump to

Keyboard shortcuts

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