Documentation ¶
Index ¶
Constants ¶
View Source
const DocLong = `` /* 470-byte string literal not displayed */
DocLong documents the commands with some examples
Variables ¶
View Source
var GetEncoder = func(w io.Writer, colorMode encoder.ColorMode, timestamps bool, compact bool, tty string) encoder.EventEncoder { if tty != "" { return encoder.NewTtyEncoder(w, tty) } if compact { return encoder.NewCompactEncoder(w, colorMode, timestamps) } return json.NewEncoder(w) }
GetEncoder returns an encoder for an event stream based on configuration options.
View Source
var GetFilter = func() *tetragon.Filter { host := viper.GetBool("host") namespaces := viper.GetStringSlice("namespace") processes := viper.GetStringSlice("process") pods := viper.GetStringSlice("pod") if host { namespaces = append(namespaces, "") } filter := tetragon.Filter{} if len(processes) > 0 { filter.BinaryRegex = processes } if len(namespaces) > 0 { filter.Namespace = namespaces } if len(pods) > 0 { filter.PodRegex = pods } return &filter }
GetFilter returns a filter for an event stream based on configuration options.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.