mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-05 10:05:47 +00:00
Embed NoopNetworkPlugin into other network plugins
Let Noop handle common functions.
This commit is contained in:
@@ -72,6 +72,8 @@ import (
|
||||
)
|
||||
|
||||
type execNetworkPlugin struct {
|
||||
network.NoopNetworkPlugin
|
||||
|
||||
execName string
|
||||
execPath string
|
||||
host network.Host
|
||||
@@ -120,9 +122,6 @@ func (plugin *execNetworkPlugin) getExecutable() string {
|
||||
return path.Join(plugin.execPath, execName)
|
||||
}
|
||||
|
||||
func (plugin *execNetworkPlugin) Event(name string, details map[string]interface{}) {
|
||||
}
|
||||
|
||||
func (plugin *execNetworkPlugin) Name() string {
|
||||
return plugin.execName
|
||||
}
|
||||
|
Reference in New Issue
Block a user