plugin

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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
}

func NewPlugin

func NewPlugin() *Plugin

func (*Plugin) CmdAdd

func (p *Plugin) CmdAdd(args *skel.CmdArgs) error

func (*Plugin) CmdCheck

func (p *Plugin) CmdCheck(args *skel.CmdArgs) error

func (*Plugin) CmdDel

func (p *Plugin) CmdDel(args *skel.CmdArgs) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL