Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + const CNITimeoutSec + const DefaultInterfaceName + const DefaultPluginName + const NET_PLUGIN_EVENT_POD_CIDR_CHANGE + const NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR + const UseDefaultMTU + func GetPodIPs(execer utilexec.Interface, nsenterPath, netnsPath, interfaceName string) ([]net.IP, error) + type Host interface + type NamespaceGetter interface + GetNetNS func(containerID string) (string, error) + type NetworkPlugin interface + Capabilities func() utilsets.Int + Event func(name string, details map[string]interface{}) + GetPodNetworkStatus func(namespace string, name string, podSandboxID kubecontainer.ContainerID) (*PodNetworkStatus, error) + Init func(host Host, hairpinMode kubeletconfig.HairpinMode, nonMasqueradeCIDR string, ...) error + Name func() string + SetUpPod func(namespace string, name string, podSandboxID kubecontainer.ContainerID, ...) error + Status func() error + TearDownPod func(namespace string, name string, podSandboxID kubecontainer.ContainerID) error + func InitNetworkPlugin(plugins []NetworkPlugin, networkPluginName string, host Host, ...) (NetworkPlugin, error) + type NoopNetworkPlugin struct + Sysctl utilsysctl.Interface + func (plugin *NoopNetworkPlugin) Capabilities() utilsets.Int + func (plugin *NoopNetworkPlugin) Event(name string, details map[string]interface{}) + func (plugin *NoopNetworkPlugin) GetPodNetworkStatus(namespace string, name string, id kubecontainer.ContainerID) (*PodNetworkStatus, error) + func (plugin *NoopNetworkPlugin) Init(host Host, hairpinMode kubeletconfig.HairpinMode, nonMasqueradeCIDR string, ...) error + func (plugin *NoopNetworkPlugin) Name() string + func (plugin *NoopNetworkPlugin) SetUpPod(namespace string, name string, id kubecontainer.ContainerID, ...) error + func (plugin *NoopNetworkPlugin) Status() error + func (plugin *NoopNetworkPlugin) TearDownPod(namespace string, name string, id kubecontainer.ContainerID) error + type NoopPortMappingGetter struct + func (*NoopPortMappingGetter) GetPodPortMappings(containerID string) ([]*hostport.PortMapping, error) + type PluginManager struct + func NewPluginManager(plugin NetworkPlugin) *PluginManager + func (pm *PluginManager) Event(name string, details map[string]interface{}) + func (pm *PluginManager) GetPodNetworkStatus(podNamespace, podName string, id kubecontainer.ContainerID) (*PodNetworkStatus, error) + func (pm *PluginManager) PluginName() string + func (pm *PluginManager) SetUpPod(podNamespace, podName string, id kubecontainer.ContainerID, ...) error + func (pm *PluginManager) Status() error + func (pm *PluginManager) TearDownPod(podNamespace, podName string, id kubecontainer.ContainerID) error + type PodNetworkStatus struct + IP net.IP + IPs []net.IP + type PortMappingGetter interface + GetPodPortMappings func(containerID string) ([]*hostport.PortMapping, error)