container

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMultiHop

func AddMultiHop(exec executor.Executor, execnet, tonet string, ref map[string]NetworkSettings) error

Adds the routes that enable communication between execnet and tonet using the ref routes. The ref routes should come from the container that is connected to both execnet and tonet.

func DeleteMultiHop

func DeleteMultiHop(exec executor.Executor, execnet, tonet string, ref map[string]NetworkSettings) error

Deletes the routes that enable communication between execnet and tonet using the ref routes.

func Networks

func Networks(name string) (map[string]NetworkSettings, error)

Types

type NetworkSettings

type NetworkSettings struct {
	Gateway             string `json:"Gateway"`
	IPAddress           string `json:"IPAddress"`
	IPPrefixLen         int    `json:"IPPrefixLen"`
	IPv6Gateway         string `json:"IPv6Gateway"`
	GlobalIPv6Address   string `json:"GlobalIPv6Address"`
	GlobalIPv6PrefixLen int    `json:"GlobalIPv6PrefixLen"`
}

Jump to

Keyboard shortcuts

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