Documentation ¶
Index ¶
- func CmdAdd(cniNetns, cniContainerID, cniIfname string, conf []byte, f func() error) (types.Result, []byte, error)
- func CmdAddWithArgs(args *skel.CmdArgs, f func() error) (types.Result, []byte, error)
- func CmdCheck(cniNetns, cniContainerID, cniIfname string, conf []byte, f func() error) error
- func CmdCheckWithArgs(args *skel.CmdArgs, f func() error) error
- func CmdDel(cniNetns, cniContainerID, cniIfname string, f func() error) error
- func CmdDelWithArgs(args *skel.CmdArgs, f func() error) error
- func NewNS() (ns.NetNS, error)
- func Ping(saddr, daddr string, isV6 bool, timeoutSec int) error
- func UnmountNS(ns ns.NetNS) error
- type BadReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdAddWithArgs ¶
func NewNS ¶
Creates a new persistent (bind-mounted) network namespace and returns an object representing that namespace, without switching to it.
Types ¶
Click to show internal directories.
Click to hide internal directories.