Documentation ¶
Index ¶
Constants ¶
View Source
const (
CNIPluginName = "nv-ipam"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAMExecutor ¶ added in v0.0.3
type IPAMExecutor interface { // ExecAdd executes IPAM plugin named pluginName ADD call ExecAdd(pluginName string, data []byte) (cnitypes.Result, error) // ExecDel executes IPAM plugin named pluginName DEL call ExecDel(pluginName string, data []byte) error // ExecCheck executes IPAM plugin named pluginName CHECK call ExecCheck(pluginName string, data []byte) error }
IPAMExecutor is an interface that executes IPAM CNI Plugin
func NewIPAMExecutor ¶ added in v0.0.3
func NewIPAMExecutor() IPAMExecutor
NewIPAMExecutor creates a new instance that implements IPAMExecutor
type Plugin ¶
type Plugin struct { Name string Version string ConfLoader types.ConfLoader IPAMExecutor IPAMExecutor }
Click to show internal directories.
Click to hide internal directories.