Documentation ¶
Overview ¶
This is a sample chained plugin that supports multiple CNI versions. It parses prevResult according to the cniVersion
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginConf ¶
type PluginConf struct { // This embeds the standard NetConf structure which allows your plugin // to more easily parse standard fields like Name, Type, CNIVersion, // and PrevResult. types.NetConf RuntimeConfig *struct { SampleConfig map[string]interface{} `json:"sample"` } `json:"runtimeConfig"` // Add plugin-specifc flags here MyAwesomeFlag bool `json:"myAwesomeFlag"` AnotherAwesomeArg string `json:"anotherAwesomeArg"` }
PluginConf is whatever you expect your configuration json to be. This is whatever is passed in on stdin. Your plugin may wish to expose its functionality via runtime args, see CONVENTIONS.md in the CNI spec.
Click to show internal directories.
Click to hide internal directories.