metacni

package
v4.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCniDir = "/etc/cni/net.d"
)

Variables

View Source
var (
	DanmConfig *datastructs.NetConf
)

Functions

func AddIfaceToResult

func AddIfaceToResult(epid string, sandBox string, cniResult *current.Result)

func AddIpToResult

func AddIpToResult(ip string, version string, cniResult *current.Result)

func CreateDanmClient

func CreateDanmClient(kubeConfig string) (danmclientset.Interface, error)

func CreateInterfaces

func CreateInterfaces(args *skel.CmdArgs) error

func DeleteInterfaces

func DeleteInterfaces(args *skel.CmdArgs) error

func GetInterfaces

func GetInterfaces(args *skel.CmdArgs) error

Types

type K8sArgs

type K8sArgs struct {
	types.CommonArgs
	IP                         net.IP
	K8S_POD_NAME               types.UnmarshallableString
	K8S_POD_NAMESPACE          types.UnmarshallableString
	K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString
}

K8sArgs is the valid CNI_ARGS type used to parse K8s CNI event calls (thanks Multus)

Jump to

Keyboard shortcuts

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