Documentation ¶
Index ¶
- Constants
- func Cmd(cmd string) string
- func CmdWithStdin(cmd, stdin_string string) string
- func CreateContainer(netconf string, k8sName string, ip string) (container_id, netnspath string, session *gexec.Session, contVeth netlink.Link, ...)
- func CreateContainerNamespace() (containerNs ns.NetNS, containerId, netnspath string, err error)
- func DeleteContainer(netconf, netnspath, name string) (exitCode int, err error)
- func RunIPAMPlugin(netconf, command, args string) (types.Result, types.Error, int)
- func WipeEtcd()
- func WipeK8sPods()
Constants ¶
View Source
const K8S_TEST_NS = "test"
Variables ¶
This section is empty.
Functions ¶
func CmdWithStdin ¶
func CreateContainer ¶
func CreateContainerNamespace ¶ added in v1.6.1
func DeleteContainer ¶
Executes the Calico CNI plugin and return the error code of the command.
func RunIPAMPlugin ¶
RunIPAMPlugin sets ENV vars required then calls the IPAM plugin specified in the config and returns the result and exitCode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.