skel

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2015 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package skel provides skeleton code for a CNI plugin. In particular, it implements argument parsing and validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginMain

func PluginMain(cmdAdd, cmdDel func(_ *CmdArgs) error)

PluginMain is the "main" for a plugin. It accepts two callback functions for add and del commands.

Types

type CmdArgs

type CmdArgs struct {
	ContainerID string
	Netns       string
	IfName      string
	Args        string
	Path        string
	StdinData   []byte
}

CmdArgs captures all the arguments passed in to the plugin via both env vars and stdin

Jump to

Keyboard shortcuts

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