reporter

package
v0.1.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 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 ChainReporter

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

func (*ChainReporter) Add

func (c *ChainReporter) Add(reporter Reporter)

func (*ChainReporter) Send

func (c *ChainReporter) Send(stack model.ViolationStack) error

type MessageFormatter

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

func (MessageFormatter) Format

func (f MessageFormatter) Format(stack model.ViolationStack) []byte

type Reporter

type Reporter interface {
	Send(stack model.ViolationStack) error
}

type SmtpReporter

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

func NewSmtpReporter

func NewSmtpReporter(username string, passwords string, host string, recipients []string, fromAddress string, topic string) SmtpReporter

func (SmtpReporter) Send

func (s SmtpReporter) Send(stack model.ViolationStack) error

type StdOut

type StdOut struct {
}

func (StdOut) Send

func (s StdOut) Send(stack model.ViolationStack) error

type WebhookReporter

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

func NewWebhookReporter

func NewWebhookReporter(url string) WebhookReporter

func (WebhookReporter) Send

Jump to

Keyboard shortcuts

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