signal

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package signal provides handling notifications from perf RB signal map.

Index

Constants

View Source
const (
	// SignalNatFillUp denotes potential congestion on the NAT table
	SignalNatFillUp = iota
	SignalTypeMax
)
View Source
const (
	// SignalNatV4 denotes NAT IPv4 table
	SignalNatV4 = iota
	// SignalNatV6 denotes NAT IPv6 table
	SignalNatV6
	SignalNatMax
)
View Source
const (
	// SignalMapName is the BPF map name
	SignalMapName = "cilium_signals"
)

Variables

This section is empty.

Functions

func MuteChannel

func MuteChannel(signal int) error

MuteChannel tells to not send any new events to a particular channel for a given signal.

func RegisterChannel

func RegisterChannel(signal int, ch chan<- SignalData) error

RegisterChannel registers a go channel for a given signal.

func SetupSignalListener

func SetupSignalListener()

SetupSignalListener bootstraps signal listener infrastructure.

func UnmuteChannel

func UnmuteChannel(signal int) error

UnmuteChannel tells to allow sending new events to a particular channel for a given signal.

Types

type SignalData

type SignalData uint32

SignalData holds actual data the BPF program sent along with the signal. Can be extended upon need for new signals.

type SignalMsg

type SignalMsg struct {
	Which uint32
	Data  SignalData
}

SignalMsg is the message we receive from BPF datapath

Jump to

Keyboard shortcuts

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