conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfAdd

func ConfAdd(rt *libcni.RuntimeConf, rawnetconf []byte, binDir string, exec invoke.Exec) (cnitypes.Result, error)

func ConfDel

func ConfDel(rt *libcni.RuntimeConf, rawnetconf []byte, binDir string) error

func ConflistAdd

func ConflistAdd(rt *libcni.RuntimeConf, rawnetconflist []byte, binDir string, exec invoke.Exec) (cnitypes.Result, error)

func ConflistDel

func ConflistDel(rt *libcni.RuntimeConf, rawnetconflist []byte, binDir string) error

func GetDefaultDelegates added in v0.1.0

func GetDefaultDelegates(delegatesAnnot, confdir string) ([]*mtypes.DelegateNetConf, error)

func GetDelegateFromFile

func GetDelegateFromFile(net *mtypes.NetworkSelectionElement, confdir string) (*mtypes.DelegateNetConf, error)

func LoadCNIRuntimeConf

func LoadCNIRuntimeConf(args *skel.CmdArgs, k8sArgs *mtypes.K8sArgs, ifName string, rc map[string]interface{}) (*libcni.RuntimeConf, error)

func LoadDelegateNetConf

func LoadDelegateNetConf(bytes []byte, isConfList bool, ifnameRequest string) (*mtypes.DelegateNetConf, error)

Convert raw CNI JSON into a DelegateNetConf structure

func LoadDelegateNetConfList

func LoadDelegateNetConfList(bytes []byte, delegateConf *mtypes.DelegateNetConf) error

func LoadNetConf

func LoadNetConf(bytes []byte, loadDefaultDelegates bool) (*mtypes.NetConf, error)

func LoadNetworkStatus

func LoadNetworkStatus(r types.Result, netName string, defaultNet bool) (*mtypes.NetworkStatus, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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