docker

package
v0.0.0-...-0c3390c Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectContainerToNetwork

func ConnectContainerToNetwork(network string, name string, dd libdocker.Interface) error

func FindEnvVar

func FindEnvVar(env []string, name string) string

func GetImageVersion

func GetImageVersion(image string, dd libdocker.Interface) (string, error)

func InspectContainer

func InspectContainer(name string, dd libdocker.Interface) (*dockertypes.ContainerJSON, error)

func NewControllerContainer

func NewControllerContainer(van *types.RouterSpec, dd libdocker.Interface) (*dockertypes.ContainerCreateConfig, error)

TODO: unify the two news

func NewProxyContainer

func NewProxyContainer(svcDef types.ServiceInterface, qdrConfig string, mapToHost bool, dd libdocker.Interface) (*dockertypes.ContainerCreateConfig, error)

func RemoveContainer

func RemoveContainer(name string, dd libdocker.Interface) error

func RemoveNetwork

func RemoveNetwork(name string, dd libdocker.Interface) error

func RestartContainer

func RestartContainer(name string, dd libdocker.Interface) error

func RestartControllerContainer

func RestartControllerContainer(dd libdocker.Interface) error

func RestartTransportContainer

func RestartTransportContainer(dd libdocker.Interface) error

func SetEnvVar

func SetEnvVar(current []string, name string, value string) []string

func StartContainer

func StartContainer(name string, dd libdocker.Interface) error

func StopContainer

func StopContainer(name string, dd libdocker.Interface) error

func WaitContainer

func WaitContainer(name string, dd libdocker.Interface) error

func WaitForContainerStatus

func WaitForContainerStatus(name string, status string, timeout time.Duration, interval time.Duration, dd libdocker.Interface) (*dockertypes.ContainerJSON, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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