deployments

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerContainer

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

func NewDockerContainer

func NewDockerContainer(fs ...DockerContainerOptFn) (*DockerContainer, error)

func (*DockerContainer) GetID

func (d *DockerContainer) GetID() string

func (*DockerContainer) GetIP

func (d *DockerContainer) GetIP() (string, error)

func (*DockerContainer) GetName

func (d *DockerContainer) GetName() (string, error)

func (*DockerContainer) Run

func (d *DockerContainer) Run() error

func (*DockerContainer) Stop

func (d *DockerContainer) Stop() error

type DockerContainerOptFn

type DockerContainerOptFn func(d *DockerContainer) error

func AllocatePublicPortsFor

func AllocatePublicPortsFor(ports ...uint32) DockerContainerOptFn

func WithContainerName

func WithContainerName(name string) DockerContainerOptFn

func WithEnvVar

func WithEnvVar(name, value string) DockerContainerOptFn

func WithImage

func WithImage(image string) DockerContainerOptFn

func WithNetwork

func WithNetwork(network string) DockerContainerOptFn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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