network

package
v0.0.0-...-ec0eb22 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	Logger log.Logger
}

Network is the interface implementation that injects network failures

func New

func New(logger log.Logger) *Network

New creates a new network struct with a logger

func (*Network) Recover

func (n *Network) Recover(device string) (string, error)

Recover all network failures on the device specified

func (*Network) Start

func (n *Network) Start(netemAttrs *v1.NetworkRequest) (string, error)

Start a network failure according to the netem attributes and the device specified

Jump to

Keyboard shortcuts

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