{"modulePath":"github.com/openstack/stackube","version":"v0.0.0-20171118154006-8d69865d6e6c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugins\n\n## Functions\n\n```go\nfunc RegisterNetworkPlugin(name string, networkPlugin Factory)\n```\nRegisterNetworkPlugin registers a networkplugin.Factory by name.  This is expected to happen during app startup.\n\n## Types\n\n```go\ntype Factory func() (PluginInterface, error)\n```\nFactory 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.\n\n```go\ntype PluginInterface interface {\n\tSetupInterface(podName, podInfraContainerID string, port *ports.Port, ipcidr, gateway, ifName, netns string) (*current.Interface, *current.Interface, error)\n\tDestroyInterface(podName, podInfraContainerID string, port *ports.Port) error\n\tInit(integrationBridge string) error\n}\n```\n\n```go\nfunc GetNetworkPlugin(name string) (PluginInterface, error)\n```\nGetNetworkPlugin 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.\n\n```go\nfunc InitNetworkPlugin(name string) (PluginInterface, error)\n```\nInitNetworkPlugin creates an instance of the named networkPlugin plugin.\n\n","path":"github.com/openstack/stackube/pkg/kubestack/plugins","name":"plugins","synopsis":"","isRedistributable":true}
