Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultInterfaceName = "eth0" CNIPluginName = "cni" DefaultNetDir = "/etc/cni/net.d" DefaultCNIDir = "/opt/cni/bin" VendorCNIDirTemplate = "%s/opt/%s/bin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIPlugin ¶
type CNIPlugin interface {
// Name returns the plugin's name. This will be used when searching
// for a plugin by name, e.g.
Name() string
// SetUpPod is the method called when the pod is created
SetUpPod(podNetnsPath string, podID string, metadata *kubeapi.PodSandboxMetadata, annotations map[string]string, capabilities map[string]interface{}) (cnitypes.Result, error)
// TearDownPod is the method called before pod stopped
TearDownPod(podNetnsPath string, podID string, metadata *kubeapi.PodSandboxMetadata, annotations map[string]string, capabilities map[string]interface{}) error
// NetworkStatus returns error if the network plugin is in error state
Status() error
}
Click to show internal directories.
Click to hide internal directories.