Documentation ¶
Index ¶
- func NewNetManager(binpath, confpath string) network.NetManager
- func NewPlugin(binpath, confFile string) (string, network.NetworkPlugin)
- type CNIPlugin
- type PluginManager
- func (manager *PluginManager) AddPlugin(name string, plugin network.NetworkPlugin) error
- func (manager *PluginManager) GetPlugin(name string) network.NetworkPlugin
- func (manager *PluginManager) Init() error
- func (manager *PluginManager) SetUpPod(podInfo container.Pod) error
- func (manager *PluginManager) Stop()
- func (manager *PluginManager) TearDownPod(podInfo container.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetManager ¶
func NewNetManager(binpath, confpath string) network.NetManager
NewNetManager create cni plugin manager
Types ¶
type CNIPlugin ¶
type CNIPlugin struct {
// contains filtered or unexported fields
}
CNIPlugin plugin for cni
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
PluginManager manager for all cni plugins
func (*PluginManager) AddPlugin ¶
func (manager *PluginManager) AddPlugin(name string, plugin network.NetworkPlugin) error
AddPlugin Add plugin to manager dynamic if necessary
func (*PluginManager) GetPlugin ¶
func (manager *PluginManager) GetPlugin(name string) network.NetworkPlugin
GetPlugin get plugin by name
func (*PluginManager) Init ¶
func (manager *PluginManager) Init() error
Init loading all configuration in directory
func (*PluginManager) SetUpPod ¶
func (manager *PluginManager) SetUpPod(podInfo container.Pod) error
SetUpPod for setting Pod network interface
func (*PluginManager) TearDownPod ¶
func (manager *PluginManager) TearDownPod(podInfo container.Pod) error
TearDownPod for release pod network resource
Click to show internal directories.
Click to hide internal directories.