schedule

package
v0.0.0-...-7c8b764 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TODAY          = "\t********** Today's schedule **********"
	NO_TERMINATION = "No terminations scheduled"
	HEADER_ROW     = "\tk8 Api Kind\tKind Name\t\tTermination Time"
	SEP_ROW        = "\t-----------\t---------\t\t----------------"
	ROW_FORMAT     = "\t%s\t%s\t\t%s"
	DATE_FORMAT    = "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