package plugin
import "github.com/containernetworking/cni/pkg/plugin"
Index ¶
- func ConfigureIface(ifName string, res *Result) error
- func ExecDel(plugin string, netconf []byte) error
- func Find(plugin string) string
- type Error
- type IPConfig
- func (c *IPConfig) MarshalJSON() ([]byte, error)
- func (c *IPConfig) UnmarshalJSON(data []byte) error
- type NetConf
- type Result
- type Route
Functions ¶
func ConfigureIface ¶
ConfigureIface takes the result of IPAM plugin and applies to the ifName interface
func ExecDel ¶
ExecDel executes IPAM plugin, assuming CNI_COMMAND == DEL.
func Find ¶
Find returns the full path of the plugin by searching in CNI_PATH
Types ¶
type Error ¶
type Error struct { Code uint `json:"code"` Msg string `json:"msg"` Details string `json:"details,omitempty"` }
func (*Error) Error ¶
func (*Error) Print ¶
type IPConfig ¶
IPConfig contains values necessary to configure an interface
func (*IPConfig) MarshalJSON ¶
func (*IPConfig) UnmarshalJSON ¶
type NetConf ¶
type NetConf struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` IPAM struct { Type string `json:"type,omitempty"` } `json:"ipam,omitempty"` }
NetConf describes a network.
type Result ¶
Result is what gets returned from the plugin (via stdout) to the caller
func ExecAdd ¶
ExecAdd executes IPAM plugin, assuming CNI_COMMAND == ADD. Parses and returns resulting IPConfig
func (*Result) Print ¶
type Route ¶
func (*Route) MarshalJSON ¶
func (*Route) UnmarshalJSON ¶
Source Files ¶
- Version
- v0.1.0
- Published
- Jul 22, 2015
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 2 days ago –
Tools for package owners.