chaos

package
v0.0.0-...-a426a1e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monkey

type Monkey struct {
	// contains filtered or unexported fields
}

Monkey simulates kubernetes component failures

func NewMonkey

func NewMonkey(client clientset.Interface, provider string) *Monkey

NewMonkey constructs a new Monkey object.

func (*Monkey) Init

func (m *Monkey) Init(config api.ChaosMonkeyConfig, stopCh <-chan struct{}) error

Init initializes Monkey with given config. When stopCh is closed, the Monkey will stop simulating failures.

func (*Monkey) Summary

func (m *Monkey) Summary() string

Summary logs Monkey execution

type NodeKiller

type NodeKiller struct {
	// contains filtered or unexported fields
}

NodeKiller is a utility to simulate node failures.

func NewNodeKiller

func NewNodeKiller(config api.NodeFailureConfig, client clientset.Interface, provider string) (*NodeKiller, error)

NewNodeKiller creates new NodeKiller.

func (*NodeKiller) Run

func (k *NodeKiller) Run(stopCh <-chan struct{})

Run starts NodeKiller until stopCh is closed.

func (*NodeKiller) String

func (k *NodeKiller) String() string

func (*NodeKiller) Summary

func (k *NodeKiller) Summary() string

Summary logs NodeKiller execution

Jump to

Keyboard shortcuts

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