maintenance

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoFutureWindows = errors.New("no future windows")

NoFutureWindows error can be used by a caller to detect that there are no maintenance windows available.

Functions

func HasValidTimeRanges

func HasValidTimeRanges(mw *commonv1alpha1.MaintenanceWindowSpec) bool

HasValidTimeRanges validates that there are non-zero time-ranges and all time-ranges specified are valid.

func InRange

InRange returns true iff the specified time is in any one of the time ranges.

func NextWindow

NextWindow returns the start time of the current or next maintenance window, coupled with the duration of that window. If no future windows are available, NoFutureWindows error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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