networks

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package networks describes custom network elements.

Index

Constants

View Source
const (
	// DLEApp contains name of the Database Lab Engine network.
	DLEApp = "DLE"

	// InternalType contains name of the internal network type.
	InternalType = "internal"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, dockerCLI *client.Client, instanceID, containerID string) error

Connect connects a container to an internal Docker network.

func Reconnect

func Reconnect(ctx context.Context, dockerCLI *client.Client, instanceID, containerID string) error

Reconnect connects a container to internal Docker network.

func Setup

func Setup(ctx context.Context, dockerCLI *client.Client, instanceID, containerName string) (string, error)

Setup creates a new internal Docker network and connects container to it.

func Stop

func Stop(dockerCLI *client.Client, internalNetworkID, containerName string)

Stop disconnect all containers from the network and removes it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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