Documentation
¶
Index ¶
Constants ¶
View Source
const ( OperatorName = "uptime-operator" // TagManagedBy Indicate to humans that the given check is managed by the operator. TagManagedBy = "managed-by-" + OperatorName AnnotationBase = "uptime.pdok.nl" AnnotationID = AnnotationBase + "/id" AnnotationName = AnnotationBase + "/name" AnnotationURL = AnnotationBase + "/url" AnnotationTags = AnnotationBase + "/tags" AnnotationInterval = AnnotationBase + "/interval-in-minutes" AnnotationRequestHeaders = AnnotationBase + "/request-headers" AnnotationStringContains = AnnotationBase + "/response-check-for-string-contains" AnnotationStringNotContains = AnnotationBase + "/response-check-for-string-not-contains" AnnotationFinalizer = AnnotationBase + "/finalizer" AnnotationIgnore = AnnotationBase + "/ignore" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UptimeCheck ¶
type UptimeCheck struct { ID string `json:"id"` Name string `json:"name"` URL string `json:"url"` Tags []string `json:"tags"` Interval int `json:"resolution"` RequestHeaders map[string]string `json:"request_headers"` //nolint:tagliatelle // grandfathered in StringContains string `json:"string_contains"` //nolint:tagliatelle // grandfathered in StringNotContains string `json:"string_not_contains"` //nolint:tagliatelle // grandfathered in }
func NewUptimeCheck ¶
func NewUptimeCheck(ingressName string, annotations map[string]string) (*UptimeCheck, error)
Click to show internal directories.
Click to hide internal directories.