testutils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 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, f func() error) (*types.Result, 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