sloutils

package
v0.0.0-...-89f4574 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompliantUntil

func CompliantUntil(issue *maintner.GitHubIssue, slo *drghs_v1.SLO, now time.Time) int64

CompliantUntil returns the seconds until the given issue is no longer compliant with the given SLO rule If the given issue is OOSLO (not compliant with the given SLO rule), then it will return a negative value representing the seconds since it became OOSLO If the issue will always be compliant, this returns 0

func DoesSloApply

func DoesSloApply(issue *maintner.GitHubIssue, slo *drghs_v1.SLO) bool

DoesSloApply determines if the given SLO applies to the given issue

Types

This section is empty.

Jump to

Keyboard shortcuts

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