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 TmpResolvConf(dnsConf types.DNS) (string, 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.
func TmpResolvConf ¶ added in v0.8.3
TmpResolvConf will create a temporary file and write the provided DNS settings to it in the resolv.conf format. It returns the path of the created temporary file or an error if any occurs while creating/writing the file. It is the caller's responsibility to remove the file.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
echo
|
|
server
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.