INNER CODE UNIT · Go

New

asobti/kube-monkey · internal/pkg/chaos/chaos.go:20

func New(killtime time.Time, victim victims.Victim) *Chaos {
	// TargetPodName will be populated at time of termination
	return &Chaos{
		killAt: killtime,
		victim: victim,
	}
}

func (c *Chaos) Victim() victims.Victim {
	return c.victim
}

func (c *Chaos) KillAt() time.Time {
	return c.killAt
}

// Schedule the execution of Chaos
func (c *Chaos) Schedule(resultchan chan<- *Result) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…