Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory func() (PluginInterface, error)
Factory is a function that returns a networkplugin.Interface. The config parameter provides an io.Reader handler to the factory in order to load specific configurations. If no configuration is provided the parameter is nil.
type PluginInterface ¶
type PluginInterface interface { SetupInterface(podName, podInfraContainerID string, port *ports.Port, ipcidr, gateway, ifName, netns string) (*current.Interface, *current.Interface, error) DestroyInterface(podName, podInfraContainerID string, port *ports.Port) error Init(integrationBridge string) error }
func GetNetworkPlugin ¶
func GetNetworkPlugin(name string) (PluginInterface, error)
GetNetworkPlugin creates an instance of the named network plugin, or nil if the name is not known. The error return is only used if the named plugin was known but failed to initialize.
func InitNetworkPlugin ¶
func InitNetworkPlugin(name string) (PluginInterface, error)
InitNetworkPlugin creates an instance of the named networkPlugin plugin.
Click to show internal directories.
Click to hide internal directories.