kube-monkey: github.com/asobti/kube-monkey/chaos Index | Files

package chaos

import "github.com/asobti/kube-monkey/chaos"

Index

Package Files

chaos.go chaosmock.go chaosresult.go

Constants

const (
    NAMESPACE  = metav1.NamespaceDefault
    IDENTIFIER = "kube-monkey-id"
    KIND       = "Pod"
    NAME       = "name"
)

type Chaos Uses

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

func New Uses

func New(killtime time.Time, victim victims.Victim) *Chaos

New creates a new Chaos instance

func NewMock Uses

func NewMock() *Chaos

func (*Chaos) DurationToKillTime Uses

func (c *Chaos) DurationToKillTime() time.Duration

DurationToKillTime calculates the duration from now until Chaos.killAt

func (*Chaos) Execute Uses

func (c *Chaos) Execute(resultchan chan<- *Result)

Execute exposed function that calls the actual execution of the chaos, i.e. termination of pods The result is sent back over the channel provided

func (*Chaos) KillAt Uses

func (c *Chaos) KillAt() time.Time

func (*Chaos) NewResult Uses

func (c *Chaos) NewResult(e error) *Result

NewResult creates a ChaosResult instance

func (*Chaos) Schedule Uses

func (c *Chaos) Schedule(resultchan chan<- *Result)

Schedule the execution of Chaos

func (*Chaos) Victim Uses

func (c *Chaos) Victim() victims.Victim

type Result Uses

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

func (*Result) Error Uses

func (r *Result) Error() error

func (*Result) Victim Uses

func (r *Result) Victim() victims.Victim

Package chaos imports 9 packages (graph) and is imported by 2 packages. Updated 2019-04-27. Refresh now. Tools for package owners.