cni

package
v0.0.0-...-cc49220 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogging

func SetLogging(stdinData []byte, containerID, netns, ifName string) error

SetLogging sets global logging parameters.

Types

type Plugin

type Plugin struct {
	SocketPath string
}

Plugin is the data structure to hold the endpoint information and the corresponding functions that use it

func NewCNIPlugin

func NewCNIPlugin() *Plugin

NewCNIPlugin creates the internal Plugin object

func (*Plugin) CmdAdd

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

CmdAdd is the callback for 'add' cni calls from skel

func (*Plugin) CmdCheck

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

func (*Plugin) CmdDel

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

func (*Plugin) PostRequest

func (p *Plugin) PostRequest(args *skel.CmdArgs) (*cnitypes.Response, string, error)

postRequest reads the cni config args and forwards it via an HTTP post request. The response. if any, is passed back to this CNI's plugin.

Jump to

Keyboard shortcuts

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