schedule

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Today         = "\t********** Today's schedule **********"
	KubeMonkeyID  = "\tKubeMonkey ID: %s"
	NoTermination = "\tNo terminations scheduled"
	HeaderRow     = "\tk8 Api Kind\tKind Namespace\tKind Name\t\tTermination Time"
	SepRow        = "\t-----------\t--------------\t---------\t\t----------------"
	RowFormat     = "\t%s\t%s\t%s\t\t%s"
	DateFormat    = "01/02/2006 15:04:05 -0700 MST"
	End           = "\t********** End of schedule **********"
)

Variables

This section is empty.

Functions

func CalculateKillTime

func CalculateKillTime() time.Time

func ShouldScheduleChaos

func ShouldScheduleChaos(mtbf int) bool

Types

type Schedule

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

func New

func New() (*Schedule, error)

func (*Schedule) Add

func (s *Schedule) Add(entry *chaos.Chaos)

func (*Schedule) Entries

func (s *Schedule) Entries() []*chaos.Chaos

func (Schedule) Print

func (s Schedule) Print()

func (*Schedule) String

func (s *Schedule) String() string

Jump to

Keyboard shortcuts

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