cni

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdAdd

func CmdAdd(args *skel.CmdArgs) error

CmdAdd is called by kubelet during pod create

func CmdCheck

func CmdCheck(args *skel.CmdArgs) error

CmdCheck is currently unused

func CmdDel

func CmdDel(args *skel.CmdArgs) error

CmdDel is called by kublet during pod delete

Types

type NetConfig

type NetConfig struct {
	types.NetConf
	Device        string `json:"deviceID"`
	Mode          string `json:"mode"`
	SkipUnloadBpf bool   `json:"skipUnloadBpf,omitempty"`
	Queues        string `json:"queues,omitempty"`
	LogFile       string `json:"logFile,omitempty"`
	LogLevel      string `json:"logLevel,omitempty"`
}

NetConfig holds the config passed via stdin

func (NetConfig) Validate

func (n NetConfig) Validate() error

Validate validates the contents of the Config struct

Jump to

Keyboard shortcuts

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