model

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 4 Imported by: 0

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 Mutation

type Mutation string
const (
	CreateOrUpdate Mutation = "create-or-update"
	Delete         Mutation = "delete"
)

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)

Jump to

Keyboard shortcuts

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