service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 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 WithProvider

func WithProvider(provider UptimeProvider) UptimeCheckOption

func WithProviderName

func WithProviderName(provider string) 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 {
	// HasCheck true when the check with the given ID exists, false otherwise
	HasCheck(check model.UptimeCheck) bool

	// CreateOrUpdateCheck create the given check with the uptime monitoring
	// provider, or update an existing check. Needs to be idempotent!
	CreateOrUpdateCheck(check model.UptimeCheck) error

	// DeleteCheck deletes the given check with from the uptime monitoring provider
	DeleteCheck(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