chaos

package
v1.3.0-test1-nomain Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 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 Teardown

type Teardown func(context.Context) error

Teardown is returned by every chaos action and executed by the caller once chaos needs to be stopped.

func Fail

func Fail(cctx *testcontext.Context, name string, pods ...string) (Teardown, error)

Fail the list of pods and prevents them from respawning until teardown is called.

func Partition2

func Partition2(ctx *testcontext.Context, name string, a, b []string) (Teardown, error)

Partition2 partitions pods in array a from pods in array b.

func Timeskew

func Timeskew(cctx *testcontext.Context, name, offset string, pods ...string) (Teardown, error)

Timeskew adjusts CLOCK_REALTIME on the specified pods by the offset.

Jump to

Keyboard shortcuts

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