node

package
v1.4.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeNameForExport

func GetNodeNameForExport() string

GetNodeNameForExport returns node name string for JSON export. It uses NODE_NAME env variable by default, which is also used by k8s watcher to watch for local pods:

https://github.com/cilium/tetragon/blob/a7be620c9fecdc2b693e3633506aca35d46cd3b2/pkg/grpc/watcher.go#L32

Set HUBBLE_NODE_NAME to override the node_name field for JSON export.

func SetCommonFields added in v1.2.1

func SetCommonFields(ev *tetragon.GetEventsResponse)

SetCommonFields set fields that are common in all the events.

func SetNodeName added in v1.2.1

func SetNodeName()

SetNodeName initializes the nodeName variable. It's defined separately from init() so that it can be called from unit tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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