INNER CODE UNIT · Go
func
kube-green/kube-green · api/v1alpha1/sleepinfo_types.go:153
func (s SleepInfo) GetSleepSchedule() (string, error) {
return s.getScheduleFromWeekdayAndTime(s.Spec.SleepTime)
}
func (s SleepInfo) GetWakeUpSchedule() (string, error) {
if s.Spec.WakeUpTime == "" {
return "", nil
}
return s.getScheduleFromWeekdayAndTime(s.Spec.WakeUpTime)
}
func (s SleepInfo) GetIncludeRef() []FilterRef {
return s.Spec.IncludeRef
}
func (s SleepInfo) GetExcludeRef() []FilterRef {
return s.Spec.ExcludeRef
}