networkmanager

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkManager

type NetworkManager struct {
	DockerNetworks map[string]types.NetworkResource
}

func New

func New() NetworkManager

func (*NetworkManager) AddRoute

func (manager *NetworkManager) AddRoute(net string, iface string) (string, string, error)

Add a route to the macOS routing table.

func (*NetworkManager) DeleteRoute

func (manager *NetworkManager) DeleteRoute(net string) (string, string, error)

Delete a route from the macOS routing table.

func (*NetworkManager) ProcessDockerNetworkCreate

func (manager *NetworkManager) ProcessDockerNetworkCreate(network types.NetworkResource, iface string)

func (*NetworkManager) ProcessDockerNetworkDestroy

func (manager *NetworkManager) ProcessDockerNetworkDestroy(network types.NetworkResource)

func (*NetworkManager) SetInterfaceAddress

func (manager *NetworkManager) SetInterfaceAddress(ip string, peerIp string, iface string) (string, string, error)

Set the point-to-point IP address configuration on a network interface.

Jump to

Keyboard shortcuts

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