forwarders

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelForwarder

func NewChannelForwarder(ch chan []byte) *channelForwarder

NewChannelForwarder creates new channelForwarder.

func NewDiscardForwarder

func NewDiscardForwarder() *discardForwarder

NewDiscardForwarder creates a new discardForwarder which discards all received data.

func NewLogForwarder

func NewLogForwarder(log logr.Logger) *logForwarder

NewLogForwarder creates new logForwarded which uses the provided logger to print all the received data.

func NewRawChannelForwarder

func NewRawChannelForwarder(ch chan types.SignalReport) *rawChannelForwarder

NewRawChannelForwarder creates new rawChannelForwarder.

func NewTLSForwarder

func NewTLSForwarder(address string, logger logr.Logger, tlsOpts ...TLSOpt) (*tlsForwarder, error)

NewTLSForwarder creates a TLS forwarder which forwards received serialized reports to a TLS endpoint specified by the provided address.

Types

type TLSOpt

type TLSOpt func(*tls.Config)

TLSOpt defines an option type that manipulates *tls.Config.

Jump to

Keyboard shortcuts

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