log

package
v0.0.0-...-edf464d Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JumpInbound             = Command{"JumpInbound", "direct all traffic through ISTIO_INBOUND chain"}
	JumpOutbound            = Command{"JumpOutbound", "direct all traffic through ISTIO_OUTBOUND chain"}
	ExcludeInboundPort      = Command{"ExcludeInboundPort", "exclude inbound port from capture"}
	IncludeInboundPort      = Command{"IncludeInboundPort", "include inbound port for capture"}
	InboundCapture          = Command{"InboundCapture", "redirect inbound request to proxy"}
	KubevirtCommand         = Command{"KubevirtCommand", "Kubevirt outbound redirect"}
	ExcludeInterfaceCommand = Command{"ExcludeInterfaceCommand", "Excluded interface"}
	UndefinedCommand        = Command{"UndefinedCommand", ""}
)
View Source
var IDToCommand = map[string]Command{
	"JumpInbound":  JumpInbound,
	"JumpOutbound": JumpOutbound,

	"ExcludeInboundPort":      ExcludeInboundPort,
	"IncludeInboundPort":      IncludeInboundPort,
	"InboundCapture":          InboundCapture,
	"KubevirtCommand":         KubevirtCommand,
	"ExcludeInterfaceCommand": ExcludeInterfaceCommand,
	"UndefinedCommand":        UndefinedCommand,
}
View Source
var TraceLoggingEnabled = env.Register(
	"IPTABLES_TRACE_LOGGING",
	false,
	"When enable, all iptables actions will be logged. "+
		"This requires NET_ADMIN privilege and has noisy logs; as a result, this is intended for debugging only").Get()

Functions

func ReadNFLOGSocket

func ReadNFLOGSocket(ctx context.Context)

ReadNFLOGSocket reads from the nflog socket, sending output to logs. This is intended for debugging only.

Types

type Command

type Command struct {
	// Short identifier that shows up in NFLOG output. Must be less than 64 characters
	Identifier string
	Comment    string
}

Jump to

Keyboard shortcuts

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