webhook

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package webhook is a generic outgoing-webhook notifier: it POSTs each investigation's findings as JSON to an operator-configured URL. It exists as much to prove RunLore's notifier extensibility (drop one self-registering file) as to be useful in production.

To enable, add one block under notify: in your values.yaml:

webhook:
  url_env: RUNLORE_WEBHOOK_NOTIFY_URL   # POST findings JSON to this URL

Adding a notifier is "drop a self-registering file under internal/notify/<name>/ + a blank import in main" — zero edits to config.Config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

Notifier POSTs investigation findings as JSON to a configured URL.

func New

func New(url string) *Notifier

New builds a webhook Notifier for the given URL.

func (*Notifier) Deliver

func (n *Notifier) Deliver(ctx context.Context, inv providers.Investigation) error

Deliver marshals the investigation to JSON and POSTs it to the configured URL.

Jump to

Keyboard shortcuts

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