docker

package
v0.0.0-...-fb22114 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectNetwork

func ConnectNetwork(nameOrId, network, ip string) error

func CreateNetwork

func CreateNetwork(name, subnet string, masquerade bool) error

CreateNetwork create a docker network with the passed parameters

func DeleteNetwork

func DeleteNetwork(name string) error

DeleteNetwork delete a docker network

func GetContainerHostIfacesIndex

func GetContainerHostIfacesIndex(name string) ([]string, error)

GetContainerHostIfacesIndex returns the interfaces name on the host of the container

func GetNetworkInterface

func GetNetworkInterface(name string) (string, error)

func ListNetwork

func ListNetwork() ([]string, error)

func ReplaceGateway

func ReplaceGateway(name, gateway string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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