service

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	// contains filtered or unexported fields
}

func NewSlack

func NewSlack(webhookURL, channelID string) *Slack

func (*Slack) Send

func (s *Slack) Send(ctx context.Context, message string)

type UptimeCheckOption

type UptimeCheckOption func(*UptimeCheckService) *UptimeCheckService

func WithDeletes added in v0.3.0

func WithDeletes(enableDeletes bool) UptimeCheckOption

func WithProvider

func WithProvider(provider UptimeProvider) UptimeCheckOption

func WithProviderAndSettings added in v0.3.0

func WithProviderAndSettings(provider string, settings any) UptimeCheckOption

func WithSlack

func WithSlack(slackWebhookURL string, slackChannel string) UptimeCheckOption

type UptimeCheckService

type UptimeCheckService struct {
	// contains filtered or unexported fields
}

func New

func New(options ...UptimeCheckOption) *UptimeCheckService

func (*UptimeCheckService) Mutate

func (r *UptimeCheckService) Mutate(ctx context.Context, mutation m.Mutation, ingressName string, annotations map[string]string)

type UptimeProvider

type UptimeProvider interface {
	// CreateOrUpdateCheck create the given check with the uptime monitoring
	// provider, or update an existing check. Needs to be idempotent!
	CreateOrUpdateCheck(ctx context.Context, check model.UptimeCheck) error

	// DeleteCheck deletes the given check from the uptime monitoring provider
	DeleteCheck(ctx context.Context, check model.UptimeCheck) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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