divanDocker

package module
v0.0.0-...-2293f32 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCannotRunDocker     = "err_cannot_run_docker"
	ErrCannotPullImage     = "err_cannot_pull_image"
	ErrCannotCreatePortMap = "err_cannot_create_port_map"
)
View Source
const (
	Version = "latest"
)

Variables

This section is empty.

Functions

func Cli

func Cli() *client.Client

func Create

func Create(configPath string, options *ContainerOptions) (string, *errors.Error)

func Ctx

func Ctx() context.Context

func Init

func Init() *errors.Error

func PortMapper

func PortMapper(portsRanges ...string) (nat.PortMap, *errors.Error)

Types

type ContainerOptions

type ContainerOptions struct {
	Name                   string `json:"name"`
	Version                string `json:"version"`
	DisableDataConsistency bool   `json:"ephemeral"`
	VolumeName             string `json:"volume_name"`
}

Jump to

Keyboard shortcuts

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