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 ¶ added in v0.8.0
func CmdCheckWithArgs ¶ added in v0.8.0
func NewNS ¶ added in v0.8.0
Creates a new persistent (bind-mounted) network namespace and returns an object representing that namespace, without switching to it.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Echosvr is a simple TCP echo server It prints its listen address on stdout 127.0.0.1:xxxxx A test should wait for this line, parse it and may then attempt to connect.
|
Echosvr is a simple TCP echo server It prints its listen address on stdout 127.0.0.1:xxxxx A test should wait for this line, parse it and may then attempt to connect. |
Click to show internal directories.
Click to hide internal directories.