test_utils

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const K8S_TEST_NS = "test"

Variables

This section is empty.

Functions

func Cmd

func Cmd(cmd string) string

func CmdWithStdin

func CmdWithStdin(cmd, stdin_string string) string

func CreateContainer

func CreateContainer(netconf string, k8sName string, ip string) (container_id, netnspath string, session *gexec.Session, contVeth netlink.Link, contAddr []netlink.Addr, contRoutes []netlink.Route, err error)

func DeleteContainer

func DeleteContainer(netconf, netnspath, name string) (session *gexec.Session, err error)

func RunIPAMPlugin

func RunIPAMPlugin(netconf, command, args string) (types.Result, types.Error, int)

RunIPAMPlugin sets ENV vars required then calls the IPAM plugin specified in the config and returns the result and exitCode.

func WipeEtcd added in v1.5.5

func WipeEtcd()

Delete everything under /calico from etcd

func WipeK8sPods added in v1.6.0

func WipeK8sPods()

Delete all K8s pods from the "test" namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL