Documentation ¶
Index ¶
- func NewNetManager() network.NetManager
- type DockerNetManager
- func (manager *DockerNetManager) AddPlugin(name string, plguin network.NetworkPlugin) error
- func (manager *DockerNetManager) GetPlugin(name string) network.NetworkPlugin
- func (manager *DockerNetManager) Init() error
- func (manager *DockerNetManager) SetUpPod(podInfo container.Pod) error
- func (manager *DockerNetManager) Stop()
- func (manager *DockerNetManager) TearDownPod(podInfo container.Pod) error
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
Click to show internal directories.
Click to hide internal directories.