testutils

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdAddWithResult

func CmdAddWithResult(cniNetns, cniIfname string, conf []byte, f func() error) (types.Result, []byte, error)

func CmdDelWithResult

func CmdDelWithResult(cniNetns, cniIfname string, f func() error) error

Types

type BadReader added in v0.4.0

type BadReader struct {
	Error error
}

BadReader is an io.Reader which always errors

func (*BadReader) Close added in v0.4.0

func (r *BadReader) Close() error

func (*BadReader) Read added in v0.4.0

func (r *BadReader) Read(buffer []byte) (int, error)

Jump to

Keyboard shortcuts

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