Documentation ¶
Index ¶
- func ConfAdd(rt *libcni.RuntimeConf, rawnetconf []byte, binDir string, exec invoke.Exec) (cnitypes.Result, error)
- func ConfDel(rt *libcni.RuntimeConf, rawnetconf []byte, binDir string) error
- func ConflistAdd(rt *libcni.RuntimeConf, rawnetconflist []byte, binDir string, exec invoke.Exec) (cnitypes.Result, error)
- func ConflistDel(rt *libcni.RuntimeConf, rawnetconflist []byte, binDir string) error
- func GetDefaultDelegates(delegatesAnnot, confdir string) ([]*mtypes.DelegateNetConf, error)
- func GetDelegateFromFile(net *mtypes.NetworkSelectionElement, confdir string) (*mtypes.DelegateNetConf, error)
- func LoadCNIRuntimeConf(args *skel.CmdArgs, k8sArgs *mtypes.K8sArgs, ifName string, ...) (*libcni.RuntimeConf, error)
- func LoadDelegateNetConf(bytes []byte, isConfList bool, ifnameRequest string) (*mtypes.DelegateNetConf, error)
- func LoadDelegateNetConfList(bytes []byte, delegateConf *mtypes.DelegateNetConf) error
- func LoadNetConf(bytes []byte, loadDefaultDelegates bool) (*mtypes.NetConf, error)
- func LoadNetworkStatus(r types.Result, netName string, defaultNet bool) (*mtypes.NetworkStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConflistAdd ¶
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 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 LoadNetworkStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.