cnm

package
v1.20.10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetManager

func NewNetManager() network.NetManager

NewNetManager interface for return DockerNetManager

Types

type DockerNetManager

type DockerNetManager struct {
}

DockerNetManager docker network manager for using docker network

func (*DockerNetManager) AddPlugin

func (manager *DockerNetManager) AddPlugin(name string, plguin network.NetworkPlugin) error

AddPlugin Add plugin to manager dynamic if necessary

func (*DockerNetManager) GetPlugin

func (manager *DockerNetManager) GetPlugin(name string) network.NetworkPlugin

GetPlugin get plugin by name

func (*DockerNetManager) Init

func (manager *DockerNetManager) Init() error

Init loading all configuration in directory

func (*DockerNetManager) SetUpPod

func (manager *DockerNetManager) SetUpPod(podInfo container.Pod) error

SetUpPod for setting Pod network interface

func (*DockerNetManager) Stop

func (manager *DockerNetManager) Stop()

Stop manager stop if necessary

func (*DockerNetManager) TearDownPod

func (manager *DockerNetManager) TearDownPod(podInfo container.Pod) error

TearDownPod for release pod network resource

Jump to

Keyboard shortcuts

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