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

package calendar

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


Package Files


func NextRuntime Uses

func NextRuntime(loc *time.Location, r int) time.Time

NextRuntime calculates the next time the Scheduled should run

func RandomTimeInRange Uses

func RandomTimeInRange(startHour int, endHour int, loc *time.Location) time.Time

RandomTimeInRange returns a random time within the range specified by startHour and endHour

Package calendar imports 3 packages (graph) and is imported by 4 packages. Updated 2018-08-16. Refresh now. Tools for package owners.