Documentation ¶
Index ¶
- Constants
- Variables
- func GetNadAnnotation(nads []*nadv1.NetworkAttachmentDefinition) ([]byte, error)
- func GetNadConfig(plugins []PluginConfigInterface) ([]byte, error)
- type Capabilities
- type NadAnnotation
- type NadAnnotationEntry
- type NadConfig
- type PluginCniType
- type PluginConfigInterface
- type TuningPlugin
- type WirePlugin
Constants ¶
View Source
const ( CniVersion = "0.3.1" // cni types WirePluginType = "wire" TuningPluginType = "tuning" )
Variables ¶
View Source
var Plugins = map[string]PluginConfigInterface{ "WirePlugin": WirePlugin{}, "TuningPlugin": TuningPlugin{}, }
key = type; plugin should become a init fn
Functions ¶
func GetNadAnnotation ¶
func GetNadAnnotation(nads []*nadv1.NetworkAttachmentDefinition) ([]byte, error)
func GetNadConfig ¶
func GetNadConfig(plugins []PluginConfigInterface) ([]byte, error)
Types ¶
type Capabilities ¶
type NadAnnotation ¶
type NadAnnotation []NadAnnotationEntry
type NadAnnotationEntry ¶
type NadAnnotationEntry struct {
Name string `json:"name,omitempty"`
}
type PluginCniType ¶
type PluginConfigInterface ¶
type PluginConfigInterface interface{}
type TuningPlugin ¶
type TuningPlugin struct { PluginCniType Capabilities }
type WirePlugin ¶
type WirePlugin struct { PluginCniType InterfaceName string `json:"interfaceName,omitempty"` MTU int `json:"mtu,omitempty"` }
Click to show internal directories.
Click to hide internal directories.